Register A New Custom Sidebar
Important: Total has a built-in function so you can easily add new sidebars via Appearance > Widget Areas. However, if you prefer to use code you can easily add new sidebars like such:
Important: Total has a built-in function so you can easily add new sidebars via Appearance > Widget Areas. However, if you prefer to use code you can easily add new sidebars like such:
Important: Since Total 5.2.1 you can add and assign custom sidebars under Appearance > Widgets without any need for custom code!
add_action( 'vc_after_init', function() { remove_action( 'wp_head', [ wpbakery(), 'addNoScript' ], 1000 ); } );
/** * Add responsive grid classes to related portfolio entries * Note: Only add the classes you need. For example if the default columns * are set to 3 no need to define 3 columns again for tablet devices. *…
The Total social widget by default only displays the site icons but the name of the sites are in the HTML for accessibility reasons. If you want to display them you can use some CSS like the following:
// Remove the payment options form from default location remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 ); // Add the payment options form under the "order notes" section // Important you will have to also add the following custom CSS to your site:…
A custom excerpt allows you to write exactly what you want shown for the excerpt. Because of this, when the theme detects a custom excerpt, it displays the full text without trimming it. If you’re using elements like Post Cards…
This snippet shows how you can modify the output of any "block" or "section" of the Post Types Grid element. So for example if you want you could override the default featured image display ("media" section) with your own custom…
/* * Adds a new badge to product entry for any product added in the last 30 days. * Simply add to child theme's functions.php file then add some css to your site to style it. * If you want…
add_action( 'wp_footer', function() { ?> ( function( $ ) { 'use strict'; $( document ).on( 'ready', function() { var $entriesWithRedirect = $( '.has-redirect' ) $entriesWithRedirect.each( function() { var $this = $( this ); $this.find( 'a' ).attr( 'target', '_blank' ); }…