Replace Header Aside Content with Widgets
This snippet will register a new "Header Aside" widget area under Appearance > Widgets or Customize > Widgets which you can use to add widgets to the header aside area.
This snippet will register a new "Header Aside" widget area under Appearance > Widgets or Customize > Widgets which you can use to add widgets to the header aside area.
If you want to be able to define Google fonts in your theme but not have the actual fonts loaded on the site (for example if you are using the OMFG Plugin to store your Google fonts locally you can…
Most themes by default display the term description on all paginated pages of your taxonomy archives, however, you can easily hook into the WordPress term_description function to remove it from a paginated pages like such:
@media only screen and (min-width: 960px) { body #site-header-inner { text-align: center; } body .header-one #site-logo { display: inline-block; float: none; height: 50px; line-height: 50px; } body .navbar-style-one { position: static; display: inline-block; left: auto; right: auto; top: auto; }…
The WPBakery CSS animations use a renamed version of the waypoints script so that items animate once they become visible on the screen. The default offset value is 85% which means it will trigger when the top of the element…
This snippet shows how you can display multiple authors via the Co-Authors plugin within the theme's meta section (this is the section that displays the post author, category, date..etc below the post title by default).
By default the theme uses the is_woocommerce() conditional for displaying the WooCommerce sidebar on the website. However, WooCommerce doesn't treat the cart/shop as actual WooCommerce pages so they will display the standard page or default sidebar instead of the WooCommerce…
The typography options in the Total theme are all saved as arrays as WordPress "theme mods" these can be easily hooked into if you want to conditionally change them. Here is an example showing how you can hook into the…
// Change The Blog Related Query Arguments add_filter( 'wpex_blog_post_related_query_args', function( $args ) { // Change orderby parameter from random to date $args['orderby'] = 'date'; // Return args return $args; } );
// Insert a show all button below the products (change the hook to fit your needs) add_action( 'wpex_hook_content_bottom', function() { if ( empty( $_GET[ 'show_all' ] ) && ( wpex_is_woo_shop() || wpex_is_woo_tax() ) ) { echo 'Show All'; } }…