• 0
Sign in to follow this  
Followers 0

Controlling Headers with CSS

Question

Posted · Report post

I would like to have 2 different headers within my site. One header for the site's pages & another for the blog/posts. I know how to do this for a single page with CSS, but haven't been able to figure out how to do this for an entire section of a site. The site is http://bizassure.com/bizsandbox/, and the blog is http://bizassure.com/bizsandbox/bizlogs/. I have uploaded a header that is transparent on the left, so I can control this area using CSS (at least that's the idea). Any help is greatly appreciated! :bz

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted · Report post

Here's one thing you could do. On the pages where you want a different header image find the identifying class in the body tag and add it to the list: [code] .home .mainlogo-img, .archive .mainlogo-img, .category .mainlogo-img { display:none; } .home .mainlogo-link, .archive .mainlogo-link, .category .mainlogo-link { display:block; width:500px; height:100px; background: url(YOUR_BG_URL) no-repeat; } [/code] This code will hide the main logo image on the homepage, archive pages, and category pages, and then it will set the main logo link to appear with the background of your choice, which will be your alternative logo image.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Is there a way around listing all the pages? This site will be growing, and I would like to get around always adding to the list in the CSS.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Biz, given what you're saying and Kastelic's reply, my best suggestion would be to create a new folder (directory) and install an additional copy of WP and PlatformPro, adding the heading you want in that section. You can seamlessly navigate back and forth via links and the menus. I do this with my site.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks so much for the help. I actually went with kastelic's suggestion once I discovered that I would not have to keep adding to the list when I create a page :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0