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

  • Profile
  • Topics Started
  • Replies Created
  • Favorites

Forum Replies Created

  • 9 years, 7 months ago lfangclairent
    Participant

    Expired

    in reply to: Header after selecting Category in Blog

    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, 7 months ago lfangclairent
    Participant

    Expired

    in reply to: Header after selecting Category in Blog

    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, 7 months ago lfangclairent
    Participant

    Expired

    in reply to: Tags for portfolio items
    This reply has been marked as private.
    9 years, 8 months ago lfangclairent
    Participant

    Expired

    in reply to: Setting default category for portfolio page
    This reply has been marked as private.
    9 years, 8 months ago lfangclairent
    Participant

    Expired

    in reply to: Setting default category for portfolio page

    Sorry. Could you give me some more detail like a code snippet to get me started?

    Thank you,

    Leo

     

    9 years, 8 months ago lfangclairent
    Participant

    Expired

    in reply to: Adding Project Details to Portfolio Page

    Please ignore. I figured it out. Thx.

    9 years, 8 months ago lfangclairent
    Participant

    Expired

    in reply to: List of icons

    Thank you.

Viewing 7 posts - 1 through 7 (of 7 total)

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