WordPress.org

Ready to get started?Download WordPress

Forums

Adding a banner to a page (5 posts)

  1. dkinsey
    Member
    Posted 5 years ago #

    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?

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    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?

  3. dkinsey
    Member
    Posted 5 years ago #

    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.

  4. maestro42
    Member
    Posted 5 years ago #

    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.

  5. maestro42
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.