Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » Forum Usage » Forum How-To »

[SOLVED] Same Banner on the "blog-page" and any post with atahualpa.


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Sep 19, 2011, 07:22 AM
liolio
 
27 posts · Aug 2011
hi everyone,

this is my first website, i'm using atahualpa 367. I have a single banner for each page, using the following code, for instance:

body.page-id-36 div#imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_ourvision.jpg) !important;
}

and it works fine of course, but not for the "blog" page, the banner simply doesn t appear. so, i'd like to have the same banner on top of this page and for any post. thanks in advance for your help.
here s the link to "my" site: www.svaka.org
  #2  
Old Sep 19, 2011, 07:47 AM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
Try the following for the CSS for the blog page.
HTML Code:
body.blog #imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_ourvision.jpg) !important;
}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Sep 20, 2011, 12:21 AM
liolio
 
27 posts · Aug 2011
thanks a lot, works perfect. though, i still have to use this code :

body.postid-1 div#imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_blog.jpg) !important;}

if i want the banner to appear for each post, otherwise there is simply no banner... is there a way to set a code once for all, for each post...
(hope u understand my english ! it s not my mother tongue)

thanks again in advance. best
  #4  
Old Sep 20, 2011, 01:03 PM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
I am not quite clear on what you want. Can you send me links to example pages?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Sep 21, 2011, 11:36 AM
liolio
 
27 posts · Aug 2011
well, how to say ? so i use the code u gave me for the "blog-page":

body.blog #imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_blog.jpg) !important;}

and it works fine.

but each post create a "new page" i mean a new url and if i want the banner to appear i have for each post to add this code for ex :

body.postid-1 div#imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_blog.jpg) !important;}

because i want to use always the same banner, i wonder if there is just one css for either the page and the posts.

best,
  #6  
Old Sep 21, 2011, 11:52 AM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Try this
HTML Code:
div#imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_ourvision.jpg) !important;}
body.blog #imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_blog.jpg) !important;}
This will set the image to 'header_ourvision.jpg' unless you are on the 'blog' page then it will set it to 'header_blog.jpg'

if you want the single post pages to show the 'header_blog.jpg' image, change the second line to
HTML Code:
body.blog #imagecontainer,
body.single #imagecontainer {
background-image: url(wp-content/themes/atahualpa367/images/header/header_blog.jpg) !important;}
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #7  
Old Sep 22, 2011, 01:27 AM
liolio
 
27 posts · Aug 2011
Great, that's I was looking for, thank you so much. all the best !

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Integration of "WP Post to PDF" similar to "WP Print" or "WP Mail" neckit Plugins & Atahualpa 4 May 30, 2011 07:44 AM
[SOLVED] Substitute Post name with "Next Post" and "Previous Page" in post navigation Alternateroute Center area post/pages 2 Nov 18, 2010 08:15 PM
Separate "home" page and "blog" page jasonnorco Page & Category Menu Bars 4 Jul 18, 2010 01:53 PM
[SOLVED] Made "Blog" page, set settings to Posts page: Blog - did not work X-Evolutionist Atahualpa 3 Wordpress theme 2 Mar 15, 2010 11:45 AM
[SOLVED] How to exclude posts in a category from appearing on the "blog"/multi-post p Shepherd Jim Atahualpa 3 Wordpress theme 6 Sep 18, 2009 02:04 PM


All times are GMT -6. The time now is 01:55 PM.


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