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

Header after selecting Category in Blog

blog category header
    • 9 years, 3 months ago lfangclairent
      Participant

      Expired

      Hi,

      I normally have a header when going to the blog posts page from my main nav menu. However, once I am in the blog view and click on one of the categories in the my right sidebar, the header disappears. The same thing happens when I click on the archive month.

      It is a bit dis-orienting that once you click on a category that there is no header or other indicator as to which category you have previously selected.

      Is there a way to retain the header with the header label being the category that was selected?

    • 9 years, 3 months ago lfangclairent
      Participant

      Expired

      FYI. I partially resolved the missing header issue because I noticed that archive.php was calling the following file:

      <?php get_template_part(‘template_inc/page_header’); ?>

      which does not exist in my directory structure.

      I’ve temporarily changed the reference to the following instead:

      <?php get_template_part(‘includes/view/page_header’); ?>

      which gets rid of the missing header problem.

      But I would like the header to reflect the selected category. Can you tell me if there is a way to do that?

      Thank you,

      Leo

       

    • 9 years, 3 months ago lfangclairent
      Participant

      Expired

      OK. I made some more progress and have enabled the header to show the category name by adding the following code block to page_header.php:

       

      if(is_category()){

      global $wp_query;

      $cat_obj = $wp_query->get_queried_object();

      $title = __($cat_obj->name, ‘codeless’);

      $title = $cat_obj->name;

      }

       

      I just have one more question…how can I achieve the same functionality for Archives. That is if I select a certain month-year combination to have that month-year combination displayed in the header.

      Thanks,

      Leo

       

    • 9 years, 3 months ago Mirela
      Participant

      Hello,

      Sorry for the late reply.
      This type of customization is out of support scope. So i have forwarded your topic to our theme developers. We will get back to your shortly.

      Best regards!

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