Viewing 3 reply threads
You must be logged in to reply to this topic.
Hi,
If I select a blog category, only the posts are displayed but no page header.
How can I add a header as on all other pages?
Thank you!
Hello,
To display the page header in blog categories please perform these steps:
1-Go to file archive.php and find the following line:
<?php get_template_part('template_inc/page_header'); ?>
Replace with this:
<?php get_template_part('includes/view/page_header'); ?>
2-Go to file \includes\view\page_header.php and find these lines:
if($cl_redata['subtitle_bool'])
$extra_class .= ' with_subtitle';
if($cl_redata['page_header_design_style'] == 'padd')
$extra_class .= ' with_padding_style';
?>
Replace with these:
if($cl_redata['subtitle_bool'])
$extra_class .= ' with_subtitle';
if($cl_redata['page_header_design_style'] == 'padd')
$extra_class .= ' with_padding_style';
if(is_category()){
global $wp_query;
$cat_obj = $wp_query->get_queried_object();
$title = $cat_obj->name;
}
?>
Save changes and refresh. Let us know.
Best regards!
Thanks a lot! It’s working. Your support is awesome!
I am glad to know that we were able to help. If you are happy with our support, please
rate the product with 5 stars under the Downloads tab of your Envato
profile.
This is very important for us to be able to keep working hard and provide more
awesome work.
Thank you for being an awesome customer!
You must be logged in to reply to this topic.