Alter Search Results Page Header Title (Search results for….)
add_filter( 'wpex_title', function( $title ) { if ( is_search() ) { return 'Your Custom Text'; } return $title; }, 50 );
add_filter( 'wpex_title', function( $title ) { if ( is_search() ) { return 'Your Custom Text'; } return $title; }, 50 );
// Remove staff relationship add_filter( 'wpex_staff_users_relations', '__return_false' ); // Removes social options add_filter( 'wpex_get_user_social_profile_settings_array', '__return_null' );
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; } );
Many functions in the theme use the WordPress oEmbed function which "strips" parameters from the URL. To add the parameters you must use a custom field via a child theme to override the output such as the example below:
function myprefix_search_filter( $query ) { if ( ! is_admin() && $query->is_main_query() ) { if ( $query->is_search ) { $query->set('post_type', 'post'); } } } add_action( 'pre_get_posts','myprefix_search_filter' );
function myprefix_live_site_locale( $locale ) { if ( ! is_admin() ) { return 'ru_RU'; // make front-end Russian } return $locale; } add_filter( 'locale', 'myprefix_live_site_locale' );
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"…
This is very similar to the snippet example here here but it allows you to have a custom output function rather then creating a template part.
/** * 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(…
Rather then using custom code you can instead create a Dynamic Template with a custom design for your category then use our free plugin to assign it.