A nice option would be to show the category name instead of the site title.
In style panel, set header to style 10
Open logo-text.php
Comment out line 8
Insert below line 12
$current_category_id = get_query_var('cat');
$current_category_obj = get_category($current_category_id);
$td_logo_text = strtoupper($current_category_obj->cat_name);
This appears to work locally. It would also be necessary to edit the td_category_template_3 and remove the line with the h1 tag showing the category. I haven’t figured out what might be a nice replacement for that area.
Turns out this works until the visitor reaches a page or a post. Modified the code in the logo-text.php file.
<?php
$td_tagline_text = td_util::get_option('tds_tagline_text');
$current_category_id = get_query_var('cat');
$current_category_obj = get_category($current_category_id);
$td_logo_text = strtoupper($current_category_obj->cat_name);
if ( empty($td_logo_text) ) {
if ( is_home() || is_front_page() ) {
$td_logo_text = "TUX REPORTS";
} elseif ( is_page() ) {
global $post;
if ( 0 == $post->post_parent ) {
$td_logo_text = strtoupper( get_the_title() );
} else {
$parents = get_post_ancestors( $post->ID );
$td_logo_text = strtoupper( apply_filters( "the_title", get_the_title( end ( $parents ) ) ) );
}
} else {
$categories = get_the_category();
if (!empty($categories)) {
$td_logo_text = strtoupper($categories[0]->name);
} else {
$td_logo_text = "TUX REPORTS";
}
}
} else {
$td_logo_text = strtoupper($current_category_obj->cat_name);
}
?>
<span class="td-logo-text-container">
<a>">
<h1 class="td-logo">
<span class="td-logo-text"><?php echo $td_logo_text; ?></span>
</h1>
<span class="td-tagline-text"><?php echo $td_tagline_text; ?></span>
</a>
</span>
This is operating on http://www.tuxreports.com and appears to be working well.
Hello LPH,
Thank you for your suggestion. Maybe, in a future update, it is possible but we cannot say for sure if it will get done in the next update because we have a big list of fixes, improvements, and suggestions to implement. It’s hard to filter them and select which one gets implemented now and which one gets postponed. The developers decide if it gets done or not, though.
Thanks for your suggestion and for your understanding!
