Skip to content

Place Header After Element in Total Theme

//HEADER DESKTOP function header_desktop() { $template = 13844; echo '<div class="container">'.do_shortcode( '[wpex_template id="' . $template . '"]' ).'</div>'; } add_action( 'wpex_hook_header_after', 'header_desktop', 40 );

Mehr Lesen

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 echo do_shortcode( '[templatera id="' . $template . '"]' ); }…

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
An den Anfang scrollen