Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Want to switch off navigation on a particular post


  #1  
Old May 3, 2015, 03:19 AM
Jerry_Q4d
 
22 posts · Apr 2014
Dear people! I have a strange problem with CSS. Id like to style a particular post in a different way: I want to switch off kicker, navigation etc. Its post number 54967, so currently I have this in my CSS inserts:

#post-54967 .navigation-top {
display: none;
}
#post-54967 .post-kicker {
display: none;
}
#post-54967 .post-footer {
display: none;
}

Kicker and footer go away without problems, but the navigation stays in place. What am I doing wrong?
  #2  
Old May 3, 2015, 08:46 AM
juggledad's Avatar
juggledad
 
23,526 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
use your code inspector or view the page and then look at the source.
Now find the navagation and list all it's elements up to the body and their ID's and classes.
Next examine your css selector and see if it will work.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 4, 2015, 10:48 AM
Jerry_Q4d
 
22 posts · Apr 2014
the humble scholar is back with the solution... I like juggledads method very much - he guides you to the right answer, often by asking questions himself. thats very philosophical. Its also less work this way

To keep it short, you need this:

.postid-54967 .navigation-top {
display: none;
}
#post-54967 .post-kicker {
display: none;
}
#post-54967 .post-footer {
display: none;
}

You notice that the selector in the first case (the navigation) is different. the reason is - and juggledad knew it of course - that the navigation is not part of the post (#postnumber) and therefore you cant address it with the post id AT ALL.
however, you can adress the body.single (the body on a single post) and switch of navigation if its class is your postnumber.
phew

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Next/Previous Single Post Navigation samij0 Excerpts, Read more, Pagination 35 Aug 4, 2015 10:33 AM
Atahualpa Next/Previous Post Navigation Customization authenticcom Atahualpa 3 Wordpress theme 1 Oct 20, 2012 03:36 PM
[SOLVED] Post navigation alphabetically fullmetalgirl Post-Kicker, -Byline & -Footer 17 Dec 4, 2011 01:53 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
Currently using 3.4.2. should I switch? johnd28 New Versions, & Updating 1 Oct 3, 2010 06:21 AM


All times are GMT -6. The time now is 06:30 PM.


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