Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » FAQ - Atahualpa » Header »

[SOLVED] Specify header image per post

Old Apr 21, 2010, 08:18 PM
3 posts · Apr 2010
I've read over these forums for hours and have not been able to find the solution. I found JuggleDads solution for setting the header image based on category or page (thanks JD), but it does not work on posts, at least not for me.
I am using mod rewrite, so even though my post id number is 641 the url reads as the name of the post. Using the url in my css inserts has been working for the categories.
I've been making my changes in the css inserts section for the categories, and again they work perfect.
Any help is appreciated.
Old Apr 22, 2010, 07:29 AM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the mod wrwrite doesn't matter. What you want to do is view the page, then view the source of the page and fine the '<body...'statement. This will give you something like this on a single post page
HTML Code:
<body class="single postid-638 logged-in">
you can now use the postid-638 for this post in the css so the headerimage override would be
HTML Code:
body.postid-638 div#imagecontainer {
background-image: url(http://yourdomain.com/wordpress/wp-content/uploads/yourpage.jpg) !important;}
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Apr 22, 2010 at 08:21 AM.
Old Apr 25, 2010, 07:17 AM
3 posts · Apr 2010

Thanks so much! I was trying post-id instead of postid

You rock!

Thanks again!



css inserts, header image, post header image

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] post-specific header image w/ css insert (page-specific ones work, but not o viewdesigninc Header configuration & styling 10 Oct 1, 2012 04:43 PM
Header image area dropping down over the first post area bushtool Header configuration & styling 2 Sep 16, 2009 01:17 PM
how to make header image linked to a post URL? dreamfree Header configuration & styling 3 Jun 13, 2009 03:54 AM
[SOLVED] Internet explorer v8 post pages not loading, also header rotation image issu bushtool Atahualpa 3 Wordpress theme 11 May 30, 2009 10:32 AM
Different header image for different post categories or pages? mundoview Header configuration & styling 1 Feb 20, 2009 03:26 AM

All times are GMT -6. The time now is 08:25 PM.

Powered by vBulletin® Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.