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…
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…
// 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…
.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; }
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-'…
// 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(…
#site-navigation-wrap { margin: 0 30px !important; } #site-navigation.container { padding: 0 !important; }
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…
/** * 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 =…
// Disable the Tribe Events Calendar Plugin single event featured image. add_filter( 'tribe_event_featured_image', '__return_false' );
The following snippet shows how you can use the 'wpex_{post_type}_entry_blocks' filter to add or remove sections/blocks from your custom post type entries which display on Archives.