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 »

[SOLVED] assign bar1 and/or bar2 only to specific pages


  #1  
Old Feb 6, 2014, 06:32 PM
ericnl
 
21 posts · Feb 2014
as it says in the title: is this possible?

I want to have some content that only shows up at the top of my home page, above the blogroll post, and I figured the way to do this would be to pin bar1 to the home page only.

any tips?
  #2  
Old Feb 6, 2014, 06:36 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
hide it with CSS using 'body.page-id-xx' as the start of your CSS selectors
__________________
"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 6, 2014, 06:51 PM
ericnl
 
21 posts · Feb 2014
so if I add this to my custom CSS it might work:?


body.home div#bar1





(it's too late to thinks straight right now, might have to look at it tomorrow)
  #4  
Old Feb 7, 2014, 02:57 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Did you try it?
__________________
"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, 04:35 AM
ericnl
 
21 posts · Feb 2014
yes I did, also with a ";" at the end, because it seemed like I forgot that

body.home div#bar1;
  #6  
Old Feb 7, 2014, 05:21 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You have no CSS rules, that is only a CSS selector. Without the rules it won't do anything.
__________________
"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, 10:36 AM
ericnl
 
21 posts · Feb 2014
so how would I go about getting it to work then?
there must be a simple way to just place the #pages menu bar in the footer?

I'm actually surprised that it hasn't been built in to Atahualpa yet...

oh, the site I'm working on for it is http://fischer-z.com
it is a bit in shambles because I'm editing different aspects at the same time, working from an existing site, but you'll catch the drift of what I'm trying to do.
  #8  
Old Feb 8, 2014, 06:05 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Ok now I'm confused. Your question stated in the topic is how to addign bar1 or bar2 to a specific page.
1) There is no DIV with an ID of 'bar1' - did you look at the page code? Use a page inspector
2) even if there was, using
HTML Code:
body.home div#bar1;
won't do anything since that is just the CSS Selector and you yave no rule associated with it.

You can't specifically assign bar1 and/or bar2 to a page, but you can ccontrol if they show or not using the CSS rule 'display: none;'.

I would have a general CSS selector/rule to turn them off, then a specific CSS selector/rule to sisplay them on a per page basis
__________________
"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 8, 2014, 09:40 AM
ericnl
 
21 posts · Feb 2014
oh crap, sorry, I'm mixing up two of my questions here.
the above post was for another thread about me trying to get the menu bar to work in the footer, must have slipped it into this thread....

++++++++++++++++++++++++++++++++

but about the bar1 div:

I thought that I hád a bar1 and bar2 because I had specified them in the 'style and edit HEADER AREA' tab in the Atahualpa settings.

for now there's nothing in there, just

height: 50px;
background: #ffffff;
border-top: solid 15px #ffffff;

but nevertheless they showed up in the header when activated there in that tab, so I assumed that I could somehow specify to have that show.

but I'm trying to go another route now, which I will ask about in a new thread (I'll first google and search the forum for answers, of course), but I will come back to this one later, because I still need to find out how to add something like this to a page, but I've too many other things going on right now to concentrate.

thanks
  #10  
Old Feb 8, 2014, 07:44 PM
ericnl
 
21 posts · Feb 2014
okay,
so I did go another route with the website, but by researching for that one, I got closer to understand how to solve this one, which is to activate the bar1 and/or bar2 in the HEADER SETTINGS, and then set a CSS selector to hide the bar for pages based upon a tag, for which I will just apply that tag to all my pages.

it might be quite a work-around, but with my current knowledge it's the only way I can think of.

thanks again, I'll mark this as SOLVED

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Suggested bugfix for %bar1 and %bar2 flyboy Header configuration & styling 1 Jan 7, 2013 03:22 AM
PATCH 3710-02: fix small extension of %bar1 and %bar2 juggledad Old Version fixes and change logs 0 Jan 7, 2013 03:21 AM
[SOLVED] bar1 and bar2 are not working dinoc Center area post/pages 6 Oct 12, 2010 01:18 PM
Using bar1 or bar2 for Javascript? paulae Header configuration & styling 3 Sep 30, 2009 11:47 AM
Minimum size for bar1 / bar2 in windows? mcphoto Header configuration & styling 2 May 11, 2009 03:36 PM


All times are GMT -6. The time now is 11:19 PM.


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