Skip to content

Total Theme: Add, override or insert Template after header with PHP

/** * Insert a Templatera template after the site header. * * @link https://totalwptheme.com/docs/snippets/insert-template-content-via-theme-hooks/ */ add_action( 'wpex_hook_header_after', function() { $template = 100; // Change this to the templatera post ID you want to grab content from. echo do_shortcode( '[templatera id="'…

Mehr Lesen

Add Description under Menu Items in Total Theme

function be_header_menu_desc( $item_output, $item, $depth, $args ) { if ( 'main_menu' == $args->theme_location && ! $depth && $item->description ) { $item_output = str_replace( '</a>', '<span class="menu-item-desc">' . $item->description . '</span></a>', $item_output ); } return $item_output; } add_filter( 'walker_nav_menu_start_el', 'be_header_menu_desc', 10,…

Mehr Lesen
you are enough text

Open Lightbox after form submission in Total Theme

//Trigger 1 #lightboxcontent https://total.wpexplorer.com/docs/adding-ilightbox-popups-inline/ //Trigger 2 /?success=confirmation https://total.wpexplorer.com/docs/snippets/trigger-lighbox-via-url/ //not needed if other lightbox elements present or do_shortcode below add_filter( 'wpex_load_ilightbox_globally', '__return_true' ); add_action( 'wp_footer', function() { //do_shortcode('[vcex_button onclick="popup" text_source="custom_text" onclick_lightbox_title="" onclick_lightbox_caption="" unique_id="confirmation" onclick_url="#lightboxcontent" onclick_lightbox_dims="450x330" visibility="hidden"]Lightbox[/vcex_button]'; ?> <a href="#lightboxcontent" id="confirmation" class="wpex-lightbox…

Mehr Lesen

Total Theme: Center Mobile Logo

Requires header style three I guess: /*CENTER LOGO MOBILE*/ @media only screen and (max-width: 1220px) { body.wpex-mobile-toggle-menu-icon_buttons #site-logo { text-align: center !important; margin: 0 auto !important; width: 250px; float: unset !important; } }

Mehr Lesen

Add Descriptions to the Total Theme integrated simple Megamenu

//MEGAMENU DESCRIPTION COL function be_header_menu_desc( $item_output, $item, $depth, $args ) { if ( 'main_menu' == $args->theme_location && ! $depth && $item->description ) { // $item_output = str_replace( '</a>', '</a><span class="new-badge">' . $item->description . '</span>', $item_output ); } else if (…

Mehr Lesen
A MacBook with lines of code on its screen on a busy desk

Total theme WPEX – WPexplorer metabox factory

Die WPEX Meta Factory ist ein wunderbares Set an Funktionen, mit denen man ganz einfach seine selbsterstellten eigenen Custom Post Types mit zusätzlichen Metadaten ausstatten kann. Früher habe ich so etwas mit Toolset gelöst. Die Suite ist sehr möchtig, aber…

Mehr Lesen
person in black and white t-shirt using computer

Total theme full screen sliders

There are two option: PHP and CSS. I tend to use the CSS variant as it gives me more flexibility. //force fullscreen to all sliders add_filter( 'vcex_image_flexslider_data_attributes', function( $attrs ) { $attrs[] = 'data-force-size="fullWindow"'; return $attrs; } ); //force fullscreen…

Mehr Lesen
An den Anfang scrollen