Support » Fixing WordPress » Adding a banner to a page

  • I am trying to add a banner to a page and apparently I’m not getting something. When I add the code for the banner, that’s all I see when I view the page. I know I’m doing something wrong, or not doing something, just don’t know what. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mercime


    Volunteer Moderator

    First of all, it depends on what kind of banner it is and where it’s supposed to be placed. Is it a banner advertisement or a banner header, etc. and is it supposed to be in header.php or sidebar.php or single.php or index.php?

    It is an advertising banner. I don’t know where it is “supposed” to be.
    How can I tell? lol
    This is my first blog, and I’m figuring it out as I go, so I really don’t know. Don’t want you to think I’m being smart.
    I thought if I copied to code and pasted it in the page it would work. No?
    I tried the “code” button in the edit portion of the page, but didn’t have any luck.

    This Depends on what type of code you are trying to insert – it seems to me that you are trying to paste code into the area where you type up a new post (When you login to the WP Admin panel – and begin to write a new post). Here, you can only put basic <a> links, etc. It doesn’t read javascript or php (without a proper plugin).

    This is not what you want to do. You need to actually edit your current themes template file for the page(s) that you want the banner to show up on.

    wp-content/themes/yourtheme/ folder.

    For example, if you want to add a banner to every post page, once a user clicks on the link to view just that single post – you would edit the single.php file – from there you paste in the banner code that you want to display.

    the code button is for you put in code – so people actually see the code – not to run the code. it is actually used for the opposite purpose you are trying – it is so the code is specifically not run.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding a banner to a page’ is closed to new replies.