NooTheme Premium WordPress Theme › Forums › Yogi › Trainer Profile page title
- This topic has 6 replies, 4 voices, and was last updated 5 years, 1 month ago by tinhbeng.
-
AuthorPosts
-
5 years, 2 months ago #1079442
Is there a what to change the page header/title on a trainer profile? right now it says "TRAINER PROFILE".
5 years, 2 months ago #1079452
AnonymousInactiveTopics: 0
Posts: 87Hi,
Thanks for contacting us.
Please go to noo-yogi/framework/functions/noo-utilities.php in line 623
Best Regards,
NooTheme
5 years, 2 months ago #1079471Thank you! Problem solved!
5 years, 2 months ago #1079485
AnonymousInactiveTopics: 0
Posts: 87Hi again,
Thanks for your feedback.
We are very happy to help you. If you have questions, don't hesitate to ask us. We are ready to help you.
And could you please give us a 5-star rating if you feel happy with our product and customer support service. It is more important for us so it will give us more motivation and confidence to serve you better.
Here is our product link: https://themeforest.net/item/yogi-health-beauty-yoga-wordpress-theme/11538612?s_rank=13
Thank you very much.
NooTheme
5 years, 1 month ago #1079810hi!
On the Class Detail page I have this sidebar I can't get rid of...can you please tell me how to delete it? There's nothing in the widget area...see attached
Also, I need the Trainers section and header changed to Instructors. How do I go about doing that?
Thanks
Jennifer
Attachments:
You must be logged in to view attached files.5 years, 1 month ago #1080209
AnonymousInactiveTopics: 0
Posts: 875 years, 1 month ago #1080217Hi,
- Remove Sidebar: You can't remove the sidebar in class single page.
You can use the Child Theme and custom the single-noo-class.php file (/themes/noo-yogi/noo-timetable/)
- Custom page heading: You can copy this function to the functions.php of Child Theme and change the text that you want.
function get_page_heading() {
$heading = '';
$archive_title = '';
$archive_desc = '';
if( ! noo_get_option( 'noo_page_heading', true ) ) {
return array($heading, $archive_title, $archive_desc);
}
if ( is_home() ) {
$heading = noo_get_option( 'noo_blog_heading_title', __( 'Blog', 'noo' ) );
} elseif ( NOO_WOOCOMMERCE_EXIST && is_shop() ) {
if( is_search() ) {
$heading =__( 'Search Results:', 'noo' ) . ' ' . esc_attr( get_search_query() );
} else {
$heading = noo_get_option( 'noo_shop_heading_title', __( 'Shop', 'noo' ) );
}
} elseif ( is_search() ) {
$heading = __( 'Search Results', 'noo' );
global $wp_query;
if(!empty($wp_query->found_posts)) {
if($wp_query->found_posts > 1) {
$heading = $wp_query->found_posts ." ". __('Search Results for:','noo')." ".esc_attr( get_search_query() );
} else {
$heading = $wp_query->found_posts ." ". __('Search Result for:','noo')." ".esc_attr( get_search_query() );
}
} else {
if(!empty($_GET['s'])) {
$heading = __('Search Results for:','noo')." ".esc_attr( get_search_query() );
} else {
$heading = __('To search the site please enter a valid term','noo');
}
}
} elseif ( is_author() ) {
$curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
$heading = __('Author Archive','noo');
if(isset($curauth->nickname)) $heading .= ' ' . __('for:','noo')." ".$curauth->nickname;
} elseif ( is_year() ) {
$heading = __( 'Post Archive by Year: ', 'noo' ) . get_the_date( 'Y' );
} elseif ( is_month() ) {
$heading = __( 'Post Archive by Month: ', 'noo' ) . get_the_date( 'F,Y' );
} elseif ( is_day() ) {
$heading = __( 'Post Archive by Day: ', 'noo' ) . get_the_date( 'F j, Y' );
} elseif ( is_404() ) {
$heading = __( 'Oops! We could not find anything to show to you.', 'noo' );
$archive_title = __( 'Would you like going else where to find your stuff.', 'noo' );
} elseif ( is_category() ) {
$heading = single_cat_title( '', false );
// $archive_desc = term_description();
}elseif (is_tag()){
$heading = single_tag_title( '', false );
}
elseif(is_tax())
{
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
$heading = $term->name;
} elseif ( is_singular( 'product' ) ) {
$heading = noo_get_option( 'noo_woocommerce_product_disable_heading', true ) ? '' : get_the_title();
} elseif ( is_single() ) {
if(is_singular('post'))
$heading = __('Blog Detail','noo');
elseif(is_singular('noo_event'))
$heading = __('Event Detail','noo');
elseif(is_singular('noo_class'))
$heading = __('Class Detail','noo');
elseif(is_singular('noo_trainer'))
$heading = __('Trainer Profile','noo');
else
$heading = get_the_title();
} elseif( is_page() ) {
//if( ! noo_get_post_meta(get_the_ID(), '_noo_wp_page_hide_page_title', false) ) {
$heading = get_the_title();
//}
} elseif( is_post_type_archive('noo_event') ) {
$heading = noo_get_option( 'noo_events_heading_title', __( 'Events List', 'noo' ) );
} elseif( is_post_type_archive('noo_class') ) {
$heading = noo_get_option( 'noo_class_heading_title', __( 'Class List', 'noo' ) );
} elseif( is_post_type_archive('noo_trainer') ) {
$heading = noo_get_option( 'noo_trainer_heading_title', __( 'Trainer List', 'noo' ) );
}
return array($heading, $archive_title, $archive_desc);
}
Best regards,
tb.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.