-
AuthorPosts
-
April 16, 2015 at 1:34 am #429308
Hi,
I am creating multiple nested pages. I do not want to display in my sidebar. I would like to display them as a proper menu in the header bar to the far right parallel with the bread crumbs. Is there a way to achieve this?Thanks
April 16, 2015 at 9:35 pm #429919Hi Vincent!
I’m not really sure I understand. Can you send us a link and take a screenshot highlighting what your trying to do?
If sounds like your trying to display another menu next to the breadcrumbs. If so then you can use our fullwidth submenu element for this.
Best regards,
ElliottApril 17, 2015 at 1:22 am #430040This reply has been marked as private.April 19, 2015 at 5:08 am #430812Hi!
Add this to the functions.php file:
add_filter('avf_title_args', 'avf_title_args_mod', 10, 2); // remove default title function avf_title_args_mod($args,$id) { $av_sidebar_menu = avia_sidebar_menu(false); $args['html'] = "<div class='{class} title_container'><div class='container'><{heading} class='main-title entry-title'>{title}</{heading}>{additions}{$av_sidebar_menu}</div></div>"; return $args; }
After that, add this to the Quick CSS field:
.title_container .widget_nav_menu { position: relative; } .title_container ul:first-child>.current-menu-item>a, .title_container ul:first-child>.current_page_item>a { padding: 3px 7px 7px 0; } #top .title_container .widget_nav_menu li { float: left; clear: none; margin: 0 5px; }
Style the menu as you want.
Cheers!
IsmaelApril 19, 2015 at 12:22 pm #430876This reply has been marked as private.April 21, 2015 at 6:40 am #431774Hi!
Oh. Okay. I thought you want the default nested page navigation in the breadcrumb bar. Anyway, that kind of menu isn’t available by default. You can try the ubermenu plugin. Or use the Fullwidth Submenu Element but you will have to add it on every child pages.
Cheers!
IsmaelApril 21, 2015 at 1:42 pm #431962This reply has been marked as private.April 23, 2015 at 5:07 am #433219Hi!
The modifications above should do the trick. It will display all co-child pages of the current page.
Cheers!
IsmaelApril 23, 2015 at 10:59 am #433351This reply has been marked as private.April 24, 2015 at 9:37 am #433983Hi!
Oh. Okay. So “Services” is not a page but a category. I’m sorry but there is no built in function to display the child of a category. Again, unfortunately, you might need to hire someone to build a custom function for it.
Regards,
IsmaelApril 24, 2015 at 10:13 am #434010Hi Ismael, services is a page. I am using it like a category with nested pages below it. My mistake above I used the incorrect terminology.
April 25, 2015 at 3:06 am #434538Hi!
OK. Do the modifications above then go to the child pages of the Services page. The menu should appear just below the title. On the portent.com site, when you click on the Services page, it goes directly to the SEO page which I believe is a child page of the Services page.
Regards,
IsmaelApril 25, 2015 at 3:06 pm #434704This reply has been marked as private.April 27, 2015 at 3:40 am #434969Hi!
It’s not working because the Page Sidebar Navigation option in the Sidebar Settings panel is disabled. Check one of the child the pages now: http://sonet.digital/about/team/
Sorry for the mess. The code is pretty basic and need additional modifications like conditional functions, css modifications etc. If you want to disable the default sidebar page navigation, add this in the Quick CSS field:
.sidebar nav.widget.widget_nav_menu { display: none; }
You can contact codeable or hire a freelance developer to add the finishing touches.
Cheers!
IsmaelApril 27, 2015 at 9:36 pm #435653Okay, we are almost there. Took your code and had it modified which is now creating a static menu udner services. Also had it styled up and looks much better now.
We are still looking at how to style the drop down megamenu – to make the width smaller and the text smaller.
April 28, 2015 at 6:42 am #435800 -
AuthorPosts
- You must be logged in to reply to this topic.