Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] Both Blog page and Static Front page highlight when Blog page selected (http://forum.bytesforall.com/showthread.php?t=1808)

lomaprietapottery May 27, 2009 02:23 PM

[SOLVED] Both Blog page and Static Front page highlight when Blog page selected
 
I know this is something I am not doing right as other do not seem to have this problem -- but can not figure it out. I have set a static front page (Intro) and a page for posts (blog) in WP. When blog page is selected/active both Intro and Blog are highlighted in the page menu. For all other pages, only the page selected/active is highlighted. Here is the link to my-in progress site http://lomaprietapottery.com.

Forgot to mention - I am using Atahualpa 3.3.3 and WP 2.7.1

By the way, love using this theme. Thanks.

Flynn May 28, 2009 05:42 PM

This is a bug, thanks for finding. Is fixed now for 3.3.4. To fix it in your 3.3.3 edit functions/bfa_header_config.php and replace in line 12

PHP Code:

if (is_front_page() OR is_home()) { 

with

PHP Code:

if (is_front_page()) { 


lomaprietapottery May 28, 2009 11:35 PM

Made the replacement and all works as expected. Thanks!

WebWeaver Jul 1, 2009 09:40 AM

Doing this broke my theme - I had to replace the config file with the original.

I think I will just update to the next version.

Thanks.

rogemj23 Jul 10, 2012 03:38 PM

I am having the same issue, but with a later version of Atathualpa, 3.7.7. I went to the php file, but line 12 is completely different code now. Help?

juggledad Jul 10, 2012 06:32 PM

without the url, I can't help you.

rogemj23 Jul 12, 2012 11:01 AM

http://www.andrearussell.com/new_site is the URL

juggledad Jul 12, 2012 12:24 PM

Are you using the atahualpa menu or a custom wordpress menu?

rogemj23 Jul 12, 2012 12:46 PM

atahualpa menu

juggledad Jul 12, 2012 01:11 PM

the link you provided goes no where

rogemj23 Jul 12, 2012 01:15 PM

Here is the link that shows both the blog and the home tabs being highlighted at the same time.
http://andrearussell.com/new_site/in...n-off-the-mat/
It should work, the site is live and has been accessed from many different computers.

juggledad Jul 12, 2012 02:47 PM

have you modified any of the theme code?
What happens if you temporallary disable all plugins?
go to ato->export/import settings, export your settings and attach them to a reply.

rogemj23 Jul 12, 2012 03:17 PM

1 Attachment(s)
I've attached the settings file.
Deactivating the plugins does not fix it. It actually adds another home page to the page menu.
I have only added html/css inserts to the theme code. I am using a child theme of atahualpa.

juggledad Jul 12, 2012 03:54 PM

Quote:

I am using a child theme of atahualpa
Why? What child theme.

rogemj23 Jul 12, 2012 04:24 PM

A child theme I made so that if I did ever change any of the theme code and updated later then it wouldn't affect my changes. I read it in a blog a couple years ago, made the child theme and have been using it ever since.

http://codex.wordpress.org/Child_Themes

juggledad Jul 12, 2012 04:56 PM

Atahualpa isn't like most themes. The theme options are stored in the database so when you update the theme they carry forward. 99% of the time there is no need to touch the actual theme code.

I imported your settings and get no duplicate items selected, there fore I can only assume that it has something to do with some thing in the child theme you created.

I would suggest activating the main theme and see what happens.

Remember if you use a child theme and nthe base theme code changes, you have to update your child theme code.

rogemj23 Jul 13, 2012 12:20 PM

Well, I exported my settings from the child theme, activated Atahualpa 3.7.7, imported the settings, and the double highlighting persists. I'm at a loss as to what to try next.

juggledad Jul 13, 2012 01:20 PM

did you try removing anything in the CSS Inserts options?

rogemj23 Jul 13, 2012 01:41 PM

1 Attachment(s)
I think the problem is that for whatever reason the current_page_item class is being applied to both the home page and the blog page at the same time. I'm attaching a screenshot to show you what I mean. I don't know how to remove the current_page_item class from the home page <li> on the blog page.

juggledad Jul 13, 2012 03:03 PM

1) What do you have set at dashboard->settings->reading->Front page displays?

2) Do you have a page called 'Home'? if so go to ato->MENU 1 (Page Menu)->Home link in Page Menu Bar and blank that option out

rogemj23 Jul 13, 2012 04:58 PM

Yes, I have a page called home. I had excluded that page from the list of pages, and had Home in the 'Home link in Page Menu Bar' setting.

When I switched those, removed Home from 'Home link in Page Menu Bar' setting on the Page Menu page, and included the page called home in the list of pages the double highlighting went away.

Thank you for your help! I will making a donation for your efforts.


All times are GMT -6. The time now is 08:34 PM.

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