Skip to content

Forminator: ADD CSS to PDF Generator

add_filter( 'forminator_pdf_basic_template_markup', function( $html, $pdf_settings, $form_id, $entry_id ){ if ( $form_id !=37063 ) { //Please change the form ID return $html; } $css = '<style type="text/css" title="text/css" media="screen"> .forminator-pdf-header.logo-container .pdf-logo { text-align:center !important; width: 100% !important; padding-left: 100px; } .forminator-pdf-header.logo-container…

Mehr Lesen
white building

Total Theme: Download Link for Grid images via JS

// Download image link. add_action( 'wp_footer', function() { ?> <script> /* Insert download links to all image grid images */ document.querySelectorAll( '.vcex-image-grid-entry-link' ).forEach( ( link ) => { const downloadLink = document.createElement( 'a' ); downloadLink.className = 'frandeprado-image-download-link'; downloadLink.setAttribute( 'href', link.getAttribute(…

Mehr Lesen

Disable Authenticator In Exchange

Sometimes you have it disabled in Exchange Admin, but still users are asked to activate it when they log in. it looks like this then: Go to Microsoft 365 Admin Click on settings. Click on Org Settings In Search type…

Mehr Lesen

Add GA Forminator Event Tracking

/* FORMINATOR TRACKING * https://gist.github.com/wpmudev-sls/5fc34beaee5a34947cda67ccc6a56bff * https://gist.github.com/patrickfreitasdev/46c9dbf946b3cc34a46ae3a24d58635b THIS ONE HERE GA ONLY */ add_action( 'wp_footer', function(){ /** * Tracking ID and property number * * The tracking ID is a string like UA-000000-2. * It must be included in your…

Mehr Lesen

Optimizing Search in Total Theme

Hi, I’m not sure what you mean by ”search from that page only”. If you just want your search bar to search standard posts (so not pages, portfolio, staff…etc) you can simply edit the search bar to set it so it only searches for posts like this: https://a.cl.ly/kpue6BY1 But if…

Mehr Lesen

CSS: Create Halstein Testimonial Box

/*TESTIMONIALS*/ .testimonial-entry-content { font-weight: 400; font-size: 34px; line-height: 1.294em; font-family: Marcellus,serif; color: var(--qode-main-color); margin: 25px 0; -ms-word-wrap: break-word; word-wrap: break-word; background-color: transparent !important; border: transparent !important; padding:0; } .testimonial-caret { display:none; } .owl-item { opacity: 0; transition: opacity .4s cubic-bezier(0,.55,.45,1);…

Mehr Lesen

Logged in and Logged out Shortcode for WordPress

//logged in shortcode function check_user ($params, $content = null){ //check tha the user is logged in if ( is_user_logged_in() ){ //user is logged in so show the content return $content; } else{ //user is not logged in so hide the…

Mehr Lesen
time lapse photography of tunnel

Tutorial: Enable gzip compression in nginx on a Plesk for more speed and smaller file size

Log in to Plesk. Go to Domains > example.com > Hosting & DNS > Apache & nginx Settings. Add the following directives to the Additional nginx directives field: gzip on; gzip_disable "MSIE [1-6]\\.(?!.*SV1)"; gzip_proxied any; gzip_comp_level 5; gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;…

Mehr Lesen

Shortcode to show current page title

function title_func($atts) { extract( shortcode_atts( array( 'num_words' => 20, ), $atts ) ); //$title = get_the_title(get_the_ID()); $title = substr(get_the_title(), 0, $num_words ); $length = strlen(get_the_title()); if ($length > $num_words) { $more = "&hellip;"; } else { $more = ""; }…

Mehr Lesen
An den Anfang scrollen