• Hi guys,

    I have a banner plugin installed which i use for the header however i want to add an extra one where i have a blank area as an advertisement. I can create another banner however i’m wondering which part i would need to add the php code in the theme files.

    I hope I’ve made sense.

    Like this: Banner image

    • This topic was modified 4 years, 8 months ago by darrellwilde.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s really theme dependent, but generally speaking, header.php. Anytime you alter theme files, to protect your alteration from theme updates, it is recommended you create a child theme to contain your changes. You will probably need to also alter theme CSS to get the addition to fit properly into the page header.

    Thread Starter darrellwilde

    (@darrellwilde)

    I have a child theme in place already. I’m just unsure of what part of my header.php I need to amend.

    Moderator bcworkz

    (@bcworkz)

    I’m sorry, I misspoke. footer.php, not header. Assuming it is to be on all pages. Probably the very first thing on the page, before the initial <?php even, if your insertion is HTML. It’ll be impractical to get the sidebar content to fill to the right of the banner though. If that’s important, you may need to add to several content templates instead if it is to appear on all pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add in a simple banner’ is closed to new replies.