Skip to content

Remove Extra User Options (social settings and staff relationship)

Add a Shortcode to the Editor Options

add_filter( 'wpex_shortcodes_tinymce_json', function( $data ) { // Add your custom shortcode $data['shortcodes']['my_custom_shortcode'] = array( 'text' => __( 'Custom Shortcode', 'total' ), 'insert' => '[custom_shortcode parameter1="value"]', ); // Return data return $data; } );

Read more

Add Post Cards Sort by Date URL Filter

This function alters the theme elements such as the "Post Cards" so you can visit the URL like such: site.com/sort_year=2016 to display items only from 2016. This will work for any Total element that displays posts. You can rename "sort_year"…

Read more

Conditionally Enable or Disable Single Blog “Sections/Blocks”

/** * Using the filter "totaltheme/blog/single_blocks" you can enable/disable blocks from the front-end * on single blog posts * * Default block ID's: featured_media, title, meta, post_series, the_content, post_tags, social_share, author_bio, related_posts_comments * * @link http://totalwptheme.com/docs/blog-single-post-builder/ */ add_filter( 'totaltheme/blog/single_blocks', function(…

Read more

Conditionally Disable/Enable The “Togglebar”

add_action( 'wpex_toggle_bar_active', function( $bool ) { // Disable on blog archives (category/tag/date/author/blog template/format archives) if ( wpex_is_blog_query() ) { $bool = false; } // Return display return $bool; } );

Read more
Back To Top