Skip to content

Simple Plus („+“) Shortcode

function plus_func($atts) { extract( shortcode_atts( array( 'symbol' => '+++', ), $atts ) ); $return = '<span class="symbol">'.$symbol.'</span>'; return $return; } add_shortcode('plus','plus_func');

Mehr Lesen

Total Theme: Add Templates to submenu Items

Add the class "megamenu-template-1" to the submenu item to replace its content. Add this code to the functions.php // Override the menu item with the 'megamenu-template-1' class with a dynamic template add_filter( 'walker_nav_menu_start_el', function( $output, $item, $depth, $args ) {…

Mehr Lesen

TOTAL THEME Replacement Variables

/** * Add Custom Dynamic Variables. * * @link https://total.wpexplorer.com/docs/snippets/add-custom-dynamic-variables/ * @since 5.6.1 */ add_filter( 'totaltheme/replace_vars/vars', function( $vars ) { // Check if the post has a featured image if (has_post_thumbnail(get_the_ID())) { $class = 'xxx'.get_the_ID(); // Return an empty string…

Mehr Lesen

SLIDER – KEN BURNS Effect

/*SLIDER KEN BURNS*/ .sp-mask .wpex-slider-media img { animation: move 30s infinite; } .wpex-slider-media { overflow: hidden; } .wpex-slider__overlay { z-index: 1000; } @keyframes kenburns { 0% { opacity: 0; } 5% { opacity: 1; } 95% { transform: scale3d(1.5, 1.5,…

Mehr Lesen

BARN DOOR EFFECT

Link .barn { height: 35vh; /* width: 100%; */ display: flex; /* justify-content: center; */ /* align-items: center; */ /* gap: 5px; */ /*border-top-left-radius: 20px; border-top-right-radius: 20px; overflow: hidden;*/ } .barn.wpex-vc-full-width-row--centered { padding-inline: 0 !important; } .wrapper .card, .barn .door…

Mehr Lesen

Total Theme ReplaCE VariabLES

/** * Add Custom Dynamic Variables. * * @link https://total.wpexplorer.com/docs/snippets/add-custom-dynamic-variables/ * @since 5.6.1 */ add_filter( 'totaltheme/replace_vars/vars', function( $vars ) { // Check if the post has a featured image if (has_post_thumbnail(get_the_ID())) { $class = 'xxx'.get_the_ID(); // Return an empty string…

Mehr Lesen

Layout for Megamenu ITEMS

Just give the item a css class like megamenu-template-1 and add this to the functions.php // Override the menu item with the 'megamenu-template-1' class with a dynamic template add_filter( 'walker_nav_menu_start_el', function( $output, $item, $depth, $args ) { //LEISTUNGEN if (…

Mehr Lesen

Total Theme Grid with Row-Spans

[vc_row full_width="stretch_row_content_no_spaces" wpex_bg_color="palette-88"][vc_column][vcex_grid_container][vcex_image image_id="976" fill_column="true" el_class="wpex-row-span-2" aspect_ratio="3/4"][vcex_image image_id="973"][vcex_image image_id="981"][vcex_image image_id="982"][vcex_image image_id="978"][/vcex_grid_container][/vc_column][/vc_row]

Mehr Lesen
An den Anfang scrollen