Skip to content

Add A Single Testimonial Shortcode

Add A Single Testimonial Shortcode

By default the Total theme doesn't include a single testimonial shortcode but if you want to add one to your child theme it's very easy to do. Simply copy and paste this code into your child theme. You can tweak…

Read more

Move Header To Site Footer

// Move Header To Site Footer function myprefix_move_header_to_footer() { // Unhook header remove_action( 'wpex_hook_wrap_top', 'wpex_header' ); // Re-hook header // Change priority if you want it after the widget footer add_action( 'wpex_hook_wrap_bottom', 'wpex_header', 0 ); } add_action( 'init', 'myprefix_move_header_to_footer', 99…

Read more

Alter the Boxed Layout Inner Padding

.boxed-main-layout #wrap .container { padding-left: 50px; padding-right: 50px; } .boxed-main-layout .navbar-style-one { right: 38px; /* 50px - 12px */ } .boxed-main-layout #searchform-dropdown { right: 50px; }

Read more

Replace Breadcrumbs with NavXT Breadcrumbs

function myprefix_navxt_breadcrumbs() { // Breadcrumbs classes $classes = array( 'site-breadcrumbs', 'wpex-clr' ); // Add position $position = apply_filters( 'wpex_breadcrumbs_position', wpex_get_mod( 'breadcrumbs_position', 'absolute' ) ); $position = ( $position && 'default' != $position ) ? $position : 'absolute'; $classes[] = 'position-'…

Read more

Add Social Sharing On The Events Calendar Plugin Events

// Add social share to event hook // If you want to place in another hook locate your hook of choice: https://github.com/moderntribe/the-events-calendar/ add_action( 'tribe_events_after_html', 'wpex_social_share', 99 ); // Enable events social share function myprefix_enable_events_social_share( $bool ) { if ( is_singular(…

Read more

Multi-Post Thumbnails Plugin Usage Example

This is a guide for using the Multi-Post thumbnails plugin with Total. This will allow you to set a secondary image specifically for your entries so you can have one image for the entry and one for the post. Of…

Read more

Change Related Blog Posts To Be Based on Tags

/** * Alter single posts related section to display related items based on tags and NOT categories * * @urlhttp://totalwptheme.com/docs/snippets/related-blog-posts-based-tags/ * */ function myprefix_alter_related_posts_query_args( $args ) { // Remove category arguments $args['category__in'] = null; // Get post tags $tags =…

Read more
Back To Top