News WordPress theme with drop down menus.

January 2013 WordPress Theme
GK User
Fri Jan 23, 2015 8:30 pm
Is there a way to make drop down menus in the News theme or do I need to install a 3rd party plug-in?
User avatar
Fresh Boarder

GK User
Mon Jan 26, 2015 8:51 am
Hello,

I don't understand, there is the drop down menu already in the News theme:
https://demo.gavick.com/wordpress/news/
First menu: Home, Theme Features, Typography...
User avatar
Moderator

GK User
Mon Jan 26, 2015 5:10 pm
Sorry for not clarifying. I am not using the first/top menu ("Home, Theme Features, Typography..."). I'm using the second menu ("World, U.S., Politics, Economic...). Is there a way to make that a drop-down?
User avatar
Fresh Boarder

GK User
Tue Jan 27, 2015 8:38 am
Unfortunately it's not possible. Only the first top (main) menu is drop down.
User avatar
Moderator

GK User
Fri Jan 30, 2015 3:39 am
Could I swap "main-menu" with "top-menu" in the template.css and wp.css?
User avatar
Fresh Boarder

GK User
Fri Jan 30, 2015 10:23 am
I think you can try, the Main menu (dropdown) is placed in News/layouts/header.php file:
Code: Select all
<?php if(gk_show_menu('mainmenu')) : ?>
            <?php gavern_menu('mainmenu', 'gk-main-menu', array('walker' => new GKMenuWalker())); ?>
            <?php gavern_menu('mainmenu', 'main-menu-mobile', array('walker' => new GKMenuWalkerMobile(), 'items_wrap' => '<select onchange="window.location.href=this.value;"><option value="#">'.__('Select a page', GKTPLNAME).'</option>%3$s</select>', 'container' => 'div')); ?>
         <?php endif; ?>

and the second menu is in the News/layouts/before.php file:
Code: Select all
<?php gavern_menu('topmenu', 'gk-top-menu'); ?>

Try to replace these fragments.
User avatar
Moderator

GK User
Mon Feb 02, 2015 4:05 pm
That worked. Thanks!
User avatar
Fresh Boarder


cron