• Hello,

    On one of the site’s category pages, I need to hide part of the taxonomy description. Since it’s without a corresponding element, I find it difficult to target it using CSS. Can someone here please help?

    URL: https://www.backpackingseries.com/category/north-east-india/
    Text to Hide: ‘3000’

    Also, could you please advice how to define a featured image for category pages (just like featured images on posts) using a snippet in functions.php file? I found a resource here, but it adds a smaller thumbnail, not a full featured image.

    Thank you,
    Kind regards,

    • This topic was modified 6 years, 7 months ago by backpackingseries. Reason: Added a resource link as an example of what I am after
Viewing 3 replies - 1 through 3 (of 3 total)
  • Howdy,

    Since it’s without a corresponding element, I find it difficult to target it using CSS.

    Looking at your example, it appears that the text “3000” is wrapped in a h6 allowing the text to be hidden with:

    
    .taxonomy-description h6 {
    	display: none;
    }

    Also, could you please advice how to define a featured image for category pages (just like featured images on posts) using a snippet in functions.php file?

    Adding a header or featured image to the archive/category pages does require code modification to the theme and is outside of the scope of the support we provide for the theme. However, I’m happy to point you in the right direction here.

    For posts, the featured image is set up in the <header> element of content-single.php. By looking at archive.php which is used for archives the underlining page output is different and would need to be modified to display the featured image.

    Take a look at both of these files to get a sesnse of how featured images work. Then when you’re ready to make changes create a Child Theme with your changes.

    Thread Starter backpackingseries

    (@backpackingseries)

    Hello,

    Yes, I added a H6 header tag after raising this request. The CSS you’ve suggested works just fine!

    Also, your suggestion about code modification for archive pages is indeed helpful. I will look in to it.

    Thank you very much

    Kind regards,

    Thread Starter backpackingseries

    (@backpackingseries)

    Hi there!

    Thank you for your support. I now have a category page with a featured image. For example: https://www.backpackingseries.com/category/north-east-india/

    I am trying to understand:

    1. How to make the ‘Older Posts’ button look the same as that on home page
    2. How to make the ‘Older Posts’ button open older posts on the same page, instead of pagination opening a new second page (with a button called newer posts).

    The desired behavior I am after is on the home page of my site https://www.backpackingseries.com

    Appreciate your guidance.

    Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to customize category page?’ is closed to new replies.