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 » Atahualpa 3 Wordpress theme » Header configuration & styling »

bar colored depending on which page atahualpa shows


  #1  
Old Feb 6, 2014, 05:34 PM
egoph's Avatar
egoph
 
59 posts · Nov 2012
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;} */

Last edited by egoph; Feb 6, 2014 at 06:34 PM.
  #2  
Old Feb 6, 2014, 06:58 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Why not
HTML Code:
body.page-id-1020 {background-color:#ff0000;}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 7, 2014, 03:25 AM
egoph's Avatar
egoph
 
59 posts · Nov 2012
Hey Juggledad!
I just want the bar to change. I have a special image for the pages.
  #4  
Old Feb 7, 2014, 03:53 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What bar do you want to change
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Feb 7, 2014, 03:57 AM
egoph's Avatar
egoph
 
59 posts · Nov 2012
Its bar1
but iIt would be the same code for bar2 or?
  #6  
Old Feb 7, 2014, 04:09 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Feb 7, 2014, 04:38 AM
egoph's Avatar
egoph
 
59 posts · Nov 2012
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...
  #8  
Old Feb 7, 2014, 05:00 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Feb 7, 2014, 05:17 AM
egoph's Avatar
egoph
 
59 posts · Nov 2012
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

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
plugin that shows a mobile-friendly version Atahualpa site Carme Plugins & Atahualpa 11 May 3, 2014 08:17 PM
My atahualpa website shows index of/ BobbyHamer Header configuration & styling 1 Jan 27, 2013 12:26 PM
Atahualpa Theme Shows the next page tag at the bottom of the post area Ahmad Center area post/pages 5 May 18, 2012 09:46 AM
[SOLVED] I'd like to link Home page header images to link to different urls depending grnidone Header configuration & styling 7 Mar 10, 2011 01:53 PM
custom image in sidebar depending on page-ID vito Sidebars & Widgets 1 Aug 12, 2009 12:26 PM


All times are GMT -6. The time now is 09:57 PM.


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