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
  • 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!

    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?

    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)