Adding graphic to header on article/post pages within a certain category?

Home Forums Gillion Theme Adding graphic to header on article/post pages within a certain category?

Home Forums Gillion Theme Adding graphic to header on article/post pages within a certain category?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • starboardcreative
    Participant

    Hello! We recently created a new “category-weddings.php” file (copied from the archive.php file) and placed it in our child theme folder to be able to add a custom graphic we needed to show on our main “weddings” page. That worked great, but we didn’t realize that it would not show on ALL post/article pages that are within our “weddings” category. Is there a way to create a custom template so that this graphic we have showing right below the title and breadcrumbs shows on ALL pages under our “weddings” post category? Thank you!

    starboardcreative
    Participant

    Just to follow up on this, if we wanted to use some WordPress conditional logic php code so that a graphic showed in a certain area (above where the main body content starts) on all POSTS that are under a certain category, would it be the “single.php” file we would edit and place in the child theme folder to have this conditional logic work so that the graphic showed on all post single article pages that are under our “weddings” category?

    Shufflehound
    Moderator

    Hi there,

     

    Thank you for your question.

    It looks like that yes you will need to modify single.php via child theme to add this kind of functionality.

    But if all that you need is to only add additional content to the page then PHP actions can be used from header.php, at the moment there are only a few, but we can add more if needed.

     

    Best regards,

    Shufflehound team

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

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form