Adding list items to the Page Menu
Flynn - I used to add list items to the Page Menu bar in version 2 of your theme by doing what you see below (I had an "openwindow" javascript method in header.php). Sometimes I wanted to link to an external page and have control over the window that opens. Is this at all possible in version 3?
Code:
<div class="clearfix" id="modernbricksmenu"> B |
You can do this in functions/bfa_header_config.php
To add a page, add this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
FIND this in line 23 in functions/bfa_header_config.php:
PHP Code:
and ADD this right before it: PHP Code:
so that you end up with: PHP Code:
|
I have a follow up question about this, I want the tab to point to a category page like this:
http://www.mysite.com/index.php/category/category1/ It works , but after clicking the tab it does not remainHIGHLIGHTED to show that it is the active section. This only works with pages , doesnt it ? |
The highlighting works if you let Wordpress create the <UL> list. If you add items manually, i.e. a link to a category to the page menu bar, you'd have to add the current state of the menu tab as well
<li class="cat-item<?php if ( is_category('Category Name') ) { echo ' current-cat'; } ?>"> <a href="link">Category Name</a></li> |
Thanks Flynn,
I get unexpected T_STRING parsing error , could you please quickly verify the syntax for me ? |
post the 3 lines above and below the line indicate in the error.
|
Thanks for all the help , I will hire developer for this one.
|
fyi, there is a bug in the category menus in ver 3.4.2- the selected page wouldn't remain highlighted in the menu bar. see http://forum.bytesforall.com/showthr...ghlight=bugfix for a fix
|
Is the method described by Flynn in post 3 still valid? The code in bfa_header_config seems to have changed a lot since then. Do you have an updated method to insert a link to external website on the pages menu?
Thanks. |
No it's not valid, that post is almost a year and a half old. Do a forum search for 'external link' and you should find the method.
I'm closing this thread due to it's age |
All times are GMT -6. The time now is 11:21 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.