Skip to content

Change the Navigation Menu Widget to Toggle When Clicking Icon Only

Add Extra Content to Grid Elements

Every Total grid module for the page builder includes filters for each "section" so you can customize the output. For example if you insert the Post Type Grid there is a filter applied to the featured image, title, excerpt, button...etc…

Read more

Change Price for WooCommerce Out of Stock Products

function myprefix_edit_woo_price( $price, $product ) { if ( ! $product->is_in_stock() ) { $price = 'Sold'; } return $price; } add_filter( 'woocommerce_variable_sale_price_html', 'myprefix_edit_woo_price', 10, 2); add_filter( 'woocommerce_variable_price_html', 'myprefix_edit_woo_price', 10, 2); add_filter( 'woocommerce_get_price_html', 'myprefix_edit_woo_price', 10, 2);

Read more

Random Background Image on Refresh

add_action( 'wp_head', function() { ?> ( function( $ ) { $( document ).ready(function() { var images = ['image_url_1', 'image_url_2', 'image_url_3']; $( 'body' ).css( { 'background-image': 'url(' + images[Math.floor(Math.random() * images.length)] + ')' } ); } ); } ) ( jQuery…

Read more

Exclude Terms from Categories Meta

add_filter( 'wp_get_object_terms', function( $terms ) { if ( $terms ) { $excluded_terms = array( 100, 40 ); // array of term ID's to exclude foreach( $terms as $key => $term ) { if ( in_array( $term->term_id, $excluded_terms ) ) {…

Read more

WooCommerce Click to Toggle Review Form

/* Add this CSS to the site to hide the form and make the comment title look more like a button */ .woocommerce #review_form #commentform { display: none; } .woocommerce #review_form .comment-reply-title { display: inline-block; background: #000; color: #fff; padding:…

Read more

Different Footer Widget Columns on Mobile

/** * Add responsive grid classes to your footer columns * Note: Only add the classes you need. For example if the default columns * are set to 4 no need to define 4 columns again for tablet devices. *…

Read more

Insert Custom “Entry/Advertisement” to the Blog Grid

add_action( 'wpex_hook_archive_loop_before_entry', function() { // Add extra content only for blog archives if ( 'blog' != wpex_get_index_loop_type() ) { return; } global $wp_query; // Insert after the 3rd item (note in WP the first item has an index of 0)a…

Read more
Back To Top