• Resolved xuki87

    (@xuki87)


    Hello everyone,

    since i’m new this is my fourth topic!
    Thanks everyone for the help!

    I have a new question! I need to enter a banner between our focus section and about us! I know how to add it on the header.php file adding this code:

    <div class="headerbanner"><a href="BANNERLINK" target="_blank"><img src="LINKTOIMAGE" width="200" height="50" /></a></div>'

    after body class
    but i want it in the middle of the page so i have to modify front-page.php.

    Do i have to create a new php file and then recall it like this:
    include get_template_directory() . "/sections/banner.php"; or i can add it simply on the front page, or i’m completly wrong?

Viewing 1 replies (of 1 total)
  • MariusG

    (@marius_codeinwp)

    Hello,

    Both ways should work just fine, but if you are going to edit the front-page or one of the sections, it’s recommended to use a child theme so changes will be permanent, otherwise every update will overwrite the files and you will lose changes.

    Kind regards,
    Marius

Viewing 1 replies (of 1 total)
  • The topic ‘Insert Banner’ is closed to new replies.