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 » Center area post/pages »

[SOLVED] change background on current page


  #1  
Old Nov 10, 2012, 01:59 PM
westpro
 
55 posts · Sep 2012
[SOLVED] change background on current page

Can’t change background color on specific page.

Inserted into CSS Inserts from “Add HTML/CSS Inserts

body#page-id-11 {
background: #ffffff;!important
}

Nothing changes.
Using Atahualpa 3.7.9
  #2  
Old Nov 10, 2012, 02:21 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You hae a syntax error. The semicolin is in the wrong place
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 10, 2012, 03:20 PM
westpro
 
55 posts · Sep 2012
body#page-id-11 {
background: #ffffff;
}

changed to this with no luck
  #4  
Old Nov 10, 2012, 06:17 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
In the selector you use a pound sigh (#). That is for an ID. Is the 'page-id-11' an ID or a class? (Classes are prefixed with a period(.)

( it took me forever to get them right)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 11, 2012, 05:32 AM
westpro
 
55 posts · Sep 2012
http://joecrews.com/?page_id=11

This is from the browser. Looks like a page to me.
  #6  
Old Nov 11, 2012, 05:46 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That is the URL. What you need to do is
1) go to that page
2) using the browser tools view the source of the page
3) find th e'<body....' statement
4) see if it has 'ID="...' and or 'class="...'
5) if you use the ID in the CSS Selector it needs to start with a pount sign (#)
6) if you use a CLASS isn the CSS Selector, it needs to start with a period (.)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Background image for current page item? crashley1784 Page & Category Menu Bars 2 Apr 22, 2011 06:07 PM
WordPress Menus - How to Change the Background Color of the Current Page/Category gomeetpete Page & Category Menu Bars 1 Nov 1, 2010 06:59 PM
Background color does not change for menu items in current state cfibanez Page & Category Menu Bars 4 Sep 2, 2010 11:18 AM
[SOLVED] Change current page menu bar background color Wimbledon Page & Category Menu Bars 7 Apr 4, 2010 12:33 AM
[SOLVED] Change Current Menu Item's Background to Transparent rnimchuk Header configuration & styling 2 Sep 15, 2009 05:12 AM


All times are GMT -6. The time now is 07:26 PM.


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