TOTAL Theme: Add content before mobile menu
add_action( 'wpex_hook_site_logo_inner', function() { ?> EXAMPLE CONTENT <?php } );
add_action( 'wpex_hook_site_logo_inner', function() { ?> EXAMPLE CONTENT <?php } );
//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 );
Use span_1_of_1 until span_1_of_8. You can combine it like this. It might require enym plugin, or you will end up with equidistant columns like "2 halfs", "3 thirds", "4 fourths" etc. (unil 8). Having mixed column widths requires a couple…
/** * 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 . '"]' ); }…
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,…
add_filter( 'wpex_localize_array', function( array $array ) { $array['localScrollExtraOffset'] = '40'; return $array; } );
//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…
/** * Register custom fields. * * @link https://total.wpexplorer.com/docs/snippets/add-custom-metaboxes-to-total/ */ function enym_testimonials_metaboxes() { if ( ! class_exists( 'WPEX_Meta_Factory' ) ) { return; } new WPEX_Meta_Factory( array( 'id' => 'event_data', 'title' => esc_html__( 'Autor', 'text_domain' ), 'screen' => array( 'testimonials' ),…
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; } }
//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 (…