PDA

View Full Version : different sales widget offers on different pages?


jhess56
05-04-2010, 04:01 PM
Right now i have a sales widget on the side of my blog. It displays a picture of a product that i sell with an affiliate link. This is displayed, the same thing, on every single page of my blog.

However, I sell different products on different pages/posts of my blog...how can i individualize each page so that the sales widget displays a different product?

For example, most of the pages are general information so my main product widget that is the default is fine, but some pages i am promoting/testing different products targeted with different keywords, and i of course dont want the competing product to be displayed on the side of that post.

thanks

admin
05-06-2010, 09:43 PM
Since the sidebar is going to be the same on every page regardless of page content, I do not see how we could do that.
I know you can set up the blog so that the sidebar only displays on the home page. Then, on any given post page, there would simply be no side bare at all, and hence, no sales offer.
To do this you would delete this bit of code from the single.php file: <?php get_sidebar(); ?>
That would be done by going into wp-admin>Appearance>>Editor>>and then Single Post (single.php)
The code is usually found near the bottom of the file.