Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

blog category – no header

blogCategoryheader
    • 8 years, 5 months ago reinhold
      Participant

      Expired

      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!

       

       

       

    • 8 years, 5 months ago Mirela
      Participant

      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!

    • 8 years, 5 months ago reinhold
      Participant

      Expired

      Thanks a lot! It’s working. Your support is awesome!

    • 8 years, 5 months ago Mirela
      Participant

      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!

Viewing 3 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password