Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   bar colored depending on which page atahualpa shows (http://forum.bytesforall.com/showthread.php?t=21476)

egoph Feb 6, 2014 04:34 PM

bar colored depending on which page atahualpa shows
 
It is for 15 static pages of 200
As a test for one page I tried theese two versions
/* <?php if ( is_page('1020') ) { ?>background-color:#ff0000;} ?>
and

is_page('1020') ) { ?>background-color:#ff0000;} */

juggledad Feb 6, 2014 05:58 PM

Why not
HTML Code:

body.page-id-1020 {background-color:#ff0000;}

egoph Feb 7, 2014 02:25 AM

Hey Juggledad!
I just want the bar to change. I have a special image for the pages.

juggledad Feb 7, 2014 02:53 AM

What bar do you want to change

egoph Feb 7, 2014 02:57 AM

Its bar1
but iIt would be the same code for bar2 or?

juggledad Feb 7, 2014 03:09 AM

So look at a generated page an find the element and class or ID for that bar.

This is where a code inspector is useful

egoph Feb 7, 2014 03:38 AM

I have found them No problems.. I just want to know how to get the cod to specific change the bar for some pages. I use ATAs Header Horizontal Bar1 styling I Think...

juggledad Feb 7, 2014 04:00 AM

You can use ATAs Header Horizontal Bar1 styling for teh default then add code into the CSS Inserts option using the 'body.page-id-nnnn' as the first part of the CSS selector. This will cause the rule that follow to only apply on page 'nnnn'

egoph Feb 7, 2014 04:17 AM

Ok as there are 15 pages I then have to select all in the CSS insert as I understand You. I thought there were an easier way.
Thank You. As usaual you make a good support for ATA


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

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