Small Question - Links in Header
I was able to figure this out in the previous version of Atahualpa, but I'm stumped on this version. I love the way the layout shows the page links on the top of the header. I wanted to use the same style, but instead of page links, provide links to other things (ie: Twitter page, Facebook profile, etc.). I was able to update the header.php file with this before, but I'm unable to figure it out this time. Any help would be greatly appreciated.
Thanks! |
In header.php, find
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Wow. Thanks for the quick response. I'm most of the way there. I was able to find and add in the code you suggested. Is there a way to have it appear like the links to the pages do in one of the bars in the header?
|
Quote:
|
Update: This post is for Atahualpa up to version 3.1.7.
Atahualpa up to 3.1.7: Use Post #2 + Post #5 (this post) Atahualpa 3.1.8 and newer: Use Post #2 + Post #10 (see below) Doh - I forgot one setting. In style.css.php, find PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Thank you so much! That fixed it. Thank you very much for your help with this. I really appreciate it. I'll be donating shortly. :)
|
I wonder if I am doing something wrong with this code, because my menu bar (the one mentioned above) comes up fine...looks & works great...but it is showing at the end of the header just above the first post. I want it to be above my header image, where I would have the pages menu show. How can I adjust this?
Thanks. |
Have you put the code from post #2 before or after
PHP Code:
And if you're referring to the default page and category menu bars, their order can be re-arranged at Atahualpa Theme Options -> Header -> Configure Header Area |
Thanks. I see where I went wrong with the placement, and now it is at the top. I do have two more questions and I promise to go away :)
1). I have it at the top, but how can I position it to be below the logo bar and above the image bar? I am trying to play with that without success. 2). I can't get it to work without the %pages in the theme options. If I take that away, the formatting for the new menu bar goes away. I can not find the style.css.php file, to insert that code, but I did find one of the lines of code you mention I should edit in header.php. Should I be making changes there? Perhaps I am working in a different version of the blog. I think I have the newest 3.1.9, but those last edits of code you mention escape me because I can't find that style.css.php file in my directory. Sorry to throw these out there, but this is the last tweaky thing I want to get wrapped up. I appreciate the past help...and any future. I'm sending a small donation, cause you have been a great help! |
You're right, the above does not apply to version 3.1.8 and newer as in 3.1.8 the dynamic CSS was moved from style.css.php to header.php. You should have no style.css.php file anymore in 3.1.8 and newer.
Instead of the changes in post #5 in this thread, do these changes for Atahualpa version 3.1.8 and newer. In header.php, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
part contains all default header items as configured at Atahualpa Theme Options -> Header -> Configure Header Area To put something in between those default items, changes would have to be made to functions/bfa_header_config.php. Like in the examples above one of the two existing menu bars, %cats or %pages would have to sacrificed if you want to use one of them for arbitrary links. To use the page menu bar for this, find, in bfa_header_config.php: PHP Code:
PHP Code:
To do the same for the category menu bar instead, in bfa_header_config.php, find: PHP Code:
PHP Code:
|
Quote:
|
I have used your code for the category menu bar. Everything works fine. However when i click on certain links & that page is displayed, the hover effect does not stay selected to show the current page we are on.
For example for my normal state of "menu link" colour is blue. If i hover over the links it it goes red. If i click on the link that page should displayed, and link should stay red to show you are reading the current page. This is how the original menu works. I tried for hours but cant get it to work. Can you please help me. |
So you're using this for internal pages, not for links to outside pages (on external websites)? Because then you could just use the page and category menu as they are?
Just to go sure that you know this: There is a whole fully functional "Category Menu Bar" that you can enable by putting %cats into Configure Header Area at Atahualpa Site Admin -> Header If you still need it, the category li items get the following additional classes when they are current or parent of current For the current cat HTML Code:
.current-cat HTML Code:
.current-cat-parent HTML Code:
ul#rmenu li.current-cat a:link, |
Ha! Genius! Thanks again. Gee, I'm feeling a little sheepish at throwing another question at you...but with this method of creating a custom nav bar with links (which is working fabulously)...is there a way to make the category links work the same as they would if I went the "normal" nav bar route? Does that make sense? Basically, I would love to have a Category choice on my new nav bar, which automatically drops down the categories that are built into the WP blog. I was playing around with some code, but I am primarily an HTML designer...and though I usually can manipulate PHP pretty well...most of it still escapes me. :)
|
Quote:
I am using external links. I have tried your suggestion by creating additional class. But It does not work. It seems like it is over ridden by the settings in Site Admin -> Header. Basicly i am using the category menu as it is but want external links. I want the hover & active link to work like the original. In my case the hover works perfectly but the active link does not work (it goes back to default state). |
Hmmm - this thread has got confusing
I'm using 3.1.9 and I want to create external links in the page menu do I take it that I add the code in post #10 and then use the other stuff from post #2 ?? |
Quote:
I updated post #5 to make that clear. |
Quote:
PHP Code:
|
Quote:
"Current" would not be possible with external links. Web site A would not know that you're on page X of web site B. That would require Javascript and tricky cookie settings, probably with a third domain/subdomain to handle the cookies for both domains. "Active" should work, but I am not sure how persistent that "active" highlighting is: HTML Code:
ul#rmenu li.current-cat a:link, |
unfortunately the above code does not work. Where are you placing the code in : themes/atahualpa/style.css
|
Quote:
The order CSS is being processed is style.css -> Theme Options (header.php) -> CSS Inserts (header.php bottom) |
Quote:
Thanks for the quick reply, but the categories are no longer dropping. Or, rather the menu is no longer dropping. I have the arrows, showing that it "thinks" it should be showing me sub-menus...but nothing happens. Any other thoughts? |
Quote:
|
Quote:
:) Thanks SO much! |
All times are GMT -6. The time now is 04:34 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.