• Hello all. I am having good luck adding items to my sidebar at the main/home page of my weblog.

    When a user clicks on a specific post, though, or find their way to one via a link, the sidebar is just blank. Nothing there. This would be a great space for some of my affiliate ads.

    Can you tell me please, is there a way to add items to the sidebar within a specific post? I would love to be able to add it contextually, choosing when and what based on the post… but wouldn’t that ad just show up within the text or at the end?

    I would like to add one to the sidebar. Of original posts.

    Thanks so much for any help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Christopher11

    (@christopher11)

    I get the Single Post area in theme editor… and that’s a great tool… but is there a trick for getting the ad way to the side of my entry text? That’s all blank anyway, and so a great place and less obtrusive one for a contextual ad.

    Thank you for any replies.

    In your index.php there should be a <?php get_sidebar(); ?> command. If that isn’t in your single.php then that would be why there’s no sidebar on the single post pages.

    There’s a number of things you can do about that, the least of which would be to add <?php get_sidebar(); ?> into single.php to put the sidebar on those pages. You can also do other things, e.g. ads – like you said. That’s slightly more involved. Do you use widgets?

    Christopher11,
    if you ask display/design related questions, don’t expect any meaningful answer if you don’t give a link, a theme theme etc.
    We don’t like to guess… and few of us have psychic abilities ??

    Thread Starter Christopher11

    (@christopher11)

    Kristarella, that php command worked beautifully. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add Item to Sidebar in Individual Post’ is closed to new replies.