• Am using the Twenty Eleven theme. Have a banner ad link I would link to place atop the main text area of the home page and in individual blog posts, but don’t know how. So far, I’ve only been able to place ads in the sidebar with the help of widgets. I have the code (my choice of Javascript or HTML), just don’t know where to paste it in. How do I do this?

    Thanks.

Viewing 1 replies (of 1 total)
  • You could do this one of three ways:

    1. Add it using the html editor in post / page view before any content you want.
    2. Add to your theme template pages.
    3. Use an advert management plugin to add it where you want (maybe by having a call in your templates – depends what the plugin requires).

    If you want to change your templates I’d recommend creating a child theme of Twenty Eleven. http://codex.wordpress.org/Child_Themes

    Assuming you are adding to templates it more than likely would be index.php and after this line:

    <div id="content" role="main">

    But, it depends if you want it across ‘all’ content (including sidebar) or just the content area. If across all you’d need to put before that line.

    Worth noting is this assumes your home page isn’t using page.php or a template page. If you are then the file to edit may be different.

Viewing 1 replies (of 1 total)

The topic ‘Placing banner ads’ is closed to new replies.