Skip to content

Add New Widget Area Above Content on Mobile

Disable WPBakery Accordion URL Hash Change

By default when using the WPBakery Accordion element whenever you click on a new item it will change the URL in the browser, the following snippet removes that functionality and prevents the URL hash change.

Read more

Add Zoom Icon to WooCommerce Product Gallery

By default, the Total theme replaces WooCommerce’s built-in lightbox with its own enhanced version. It also makes each image clickable, opening directly in the lightbox. This approach is generally more user-friendly than WooCommerce’s default method, which places a small icon…

Read more

Add Custom Block to Post Content Builder Element

/** * Register new block for the Post Content element. * * @link https://totalwptheme.com/docs/snippets/custom-block-post-content-module/ */ add_filter( 'vcex_post_content_blocks', function( $blocks ) { $blocks['my_custom_block_callback'] = 'My Custom Block Name'; return $blocks; } ); /** * Callback function for the "my_custom_block_callback" Post Content…

Read more

Query Items From Different Blogs on a Multisite

In WordPress there is no way to use the core WP_Query class to pull items from different multisite installations. For this reason if you want to insert a Total module on a multisite that queries items from a different site…

Read more
Back To Top