RESOURCE POST | Download to Form Submit (HTML/JS)

function get_file( the_file ) { /*sendGA4Event(‘Downloads’, ‘resource_download’, { ‘resource_type’: ‘ebook’, ‘file_name’: the_file });*/ gtag(‘event’, ‘file_download’, { ‘file_name’: ‘example_document.pdf’, ‘file_type’: ‘PDF’ }); //alert(“Hello there! Ignore This. Kim is Testing.”); document.getElementById(‘field_cbh7u’).value = the_file; //alert(“Hello there! Ignore This. Kim is Testing. 2”); document.getElementById(‘form_85a93’).submit();…Continue reading

CSS Formatting

add_action( ‘wp_head’, function () { ?> /* GLOBAL START*/ /* Change Star Icon Color for JetReviews Plugin */ .jet-reviews-stars-field .jet-reviews-stars–filled i { color: #00CE7C !important; } /* Fix Double Search bar and x */ input[type=”search”]::-webkit-search-decoration, input[type=”search”]::-webkit-search-cancel-button, input[type=”search”]::-webkit-search-results-button, input[type=”search”]::-webkit-search-results-decoration { -webkit-appearance:none;…Continue reading

Hide Tickets for members

function my_hide_ticket_by_taxonomy_role( $content ) { if ( is_tax( ‘tribe_events_cat’, ‘301’ ) && ( current_user_can( ‘member_core’ ) || current_user_can( ‘member_writer’ ) ) ) { // Remove the event ticket form $content = preg_replace( ‘//is’, ”, $content ); } return $content; }…Continue reading