• I just installed WP 3.0.1 and widget logic. I would like to have a different header image for each page and I understand widget logic is the way to go for this.
    When adding code:is_page(id) the specified header image is displayed, however it displays on every page. I was under impression this would make the header image page specific.
    Can anyone help point me in right direction with this? Fairly new to WP and still getting feet wet, but am coming along otherwise. Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I don’t think widget logic is what you want really. you could do something like this with widget logic – define lots of widgets and logic for each that says ‘show this widget on page X’. but that’s a bit ’round the houses’, you should try the more direct route that show an image based on the page id – a lot less fussy and easier to admin and change your mind about.

    I did the same type of thing where I created six different widgets using the is_page(‘pagename’) and uploaded the 6 different images, and then copied the URL into the widget for each specified page.

    You can see how it works here: http://www.checkinsurancequotes.com

    I am also trying to get different images to show for individual posts based on their topic but so far can only get it to work in select categories, but not on the individual posts. Any ideas?

    I also just got the single posts to be able to pull in the proper images and forms using widget logic by using this:
    is_page(‘page name’) || is_category(‘category name’) || is_single() && in_category(‘category name’).

    The thing that is really cool about this is that for SEO purposes, I did not want to use categories since it make the URL string to diluted to have the word “category” in it.

    Now, to be able to have this work and not use categories….I set up categories in the dashboard, when I make a post, I assign it to a category, but in my navigation I do not show the categories!

    Doing this keeps the link count on the page lower (better for link weight distribution), keeps the URL as strong as possible, and still allows me to use posts on a category based topic to pull in the proper images and forms.

    Hope this helps! A big THANK YOU to the people that have helped me get this going. Especially Alanft!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change header image each page with widget logic’ is closed to new replies.