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)
-   -   How to make popup menu links? (http://forum.bytesforall.com/showthread.php?t=350)

Hansuke Feb 11, 2009 10:05 PM

How to make popup menu links?
 
Hello, for example, i have a menu page titled "photo album", when the user click on the photo album menu button, it will link to and external link in a pop up window.

Sorry i am new to all this, any idea?

Regards,
Hans

Flynn Feb 12, 2009 12:13 AM

See http://forum.bytesforall.com/showthr...p?t=103&page=2 post #36 on how to add arbitrary links to the page menu bar

Use that tutorial in that link and additionally add target="_blank" inside your added link(s) like this

HTML Code:

<a href="link" target="_blank">

Hansuke Feb 12, 2009 02:26 AM

Thanks Flynn, i see how it works now for the menu link to popup, but now i have another question...

since im creating these links manually, it seems that the Theme's Page option menu links always appear infront of them, is there a way to make these link appear in the middle of menu or before the Theme Menu link?

:confused:

Regards,
Hans

Flynn Feb 12, 2009 06:14 AM

To put the arbitrary link on the left side of the page menu links in bfa_header_config.php:

PHP Code:

// Page Menu Bar 
$page_menu_bar '<div id="menu1"><ul id="rmenu2" class="clearfix rMenu-hor rMenu">' "\n";

$page_menu_bar .='
<li><a href="link" target="_blank">Link Text</a></li>
<li><a href="link" target="_blank">Link Text</a></li>
<li><a href="link">Link Text</a></li>
<li><a href="link">Link Text</a></li>
<li class="rMenu-expand"><a href="link">Link with sub menu</a>
   <ul class="rMenu-ver">
      <li><a href="link">Sub menu item 1</a></li>
      <li><a href="link">Sub menu item 2</a></li>
   </ul>
</li>
<li><a href="link">Link Text</a></li>
'
;

if (
$bfa_ata_home_page_menu_bar != '') {
    
$page_menu_bar .= '<li class="page_item';
    if (
function_exists('is_front_page')) {
        if (
is_front_page() OR is_home()) { $page_menu_bar .= ' current_page_item';
        }} elseif (
is_home()) { $page_menu_bar .= ' current_page_item';    }
$page_menu_bar .= '"><a href="' get_option('home') . '/" title="' get_option('blogname') . '">' 
$bfa_ata_home_page_menu_bar '</a></li>' "\n";    
}    
if (
$bfa_ata_levels_page_menu_bar == "") {$bfa_ata_levels_page_menu_bar 0; }    
$page_menu_bar .= bfa_hor_pages($bfa_ata_sorting_page_menu_bar$bfa_ata_levels_page_menu_bar$bfa_ata_titles_page_menu_bar$bfa_ata_exclude_page_menu_bar);
$page_menu_bar .= '</ul></div>' "\n";
// END of Page Menu Bar 

I've included target=_blank for the first two links to show where it needs to be put

Hansuke Feb 12, 2009 08:34 AM

Thanks for the reply Flynn. The popup was solved earlier :)

My question now is about the Page Ordering, I could not put my arbitrary link in the middle of the other menus.

Example: i created Page1, Page2 and Page3 in the theme Add Page interface. then now i created the arbitrary link as Page 4, so it appear Page1, Page2, Page3 and Page4.

now i want to reorder them ....Page1, Page4 , Page 2 , Page3.

can it be done ? where should i look into?

araneum Feb 13, 2009 10:49 AM

Page order can be set from the wordpress Page dashboard.


All times are GMT -6. The time now is 06:20 AM.

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