Skip to content
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
red round round round container

Turn more button into read more toggle

https://gist.github.com/wpexplorer/33811c988bae14e64cc83cda9d7494ec // Hook into the vc_shortcode_content_filter flter to modify the vc_column_text content // and covert the more tag into an actual toggle button. add_filter( 'vc_shortcode_content_filter', function( $content, $shortcode ) { if ( 'vc_column_text' !== $shortcode ) { return $content; }…

Mehr Lesen
black laptop computer on white table

Overlay header exceptions

If you want global overlay header but on hoepage you want to have not template beneath? add_filter( 'wpex_overlay_header_template', function( $template_id ) { if ( is_front_page() ) { $template_id = ''; // you can set it to none and just add…

Mehr Lesen
computer screen shows programming codes

Total Theme helper classes for responsibility

Just for my own references. These are the helper classes which I always search for. hidden – Always Hiddenshow-at-mm-breakpoint – Visible At Mobile Menu Breakpointhide-at-mm-breakpoint – Hidden At Mobile Menu Breakpointhidden-desktop-large – Hidden on Large Desktops (1280px or greater)hidden-desktop – Hidden on Desktop (1024px or…

Mehr Lesen
An den Anfang scrollen