I am going to create a Wordpress website using 2017 Wordpress theme and I want it to be fully customized design. So I am trying to use my own navigation bar design in it.
For now I have remove default navigation bar in php file and add custom html and css code. But it is not actually what I want. I want it to be fully customisable from wordpress admin panel. For a example if I add new page it should add to navigation bar like normal function in Wordpress. But for now each and every page I have to update navigation bar manually. Can you provide solution for this?
You need register menu register_nav_menu
Use wp_nav_menu for showing menu in your template
For full customization markup for menu you can use wp_nav_menu( [ 'walker' => new My_Menu_Walker() ] );
Create class My_Menu_Walker and customize all elements.
Related
I am creating a Magento shop , right now shop have no navigation bar. I want to add a navigation bar on the top of the page using the categories hierarchy I created. Or just tell me how to create a navigation manually or add it through some widget. Please.
If your using Luma Theme (the default magento2 theme), the top navigation should automatically appear after you create your categories. You can check the following guide: http://docs.magento.com/m2/ce/user_guide/catalog/navigation-top.html
If you want to create custom navigation you can check this page:
http://icecubedigital.com/blog/how-to-create-a-cms-page-in-magento-2-and-add-its-link-to-top-navigation-menu/
How to convert this awesome menu to wordpress.
Menu demo link.
Wordpress has its own default feature to display a menu with using wp_nav_menu function.
You can create a menu from WordPress backend and call it using this function so your menu will be dynamically and you can set the last menu with label ... and select as a custom link with # then you can add another sub child under this menu as well.
You can apply same CSS to this menu also to look same as you want.
I hope this will be helpful for you.
Thanks.
I want to customise the top menu bar of my wordpress site. By customise I mean modify the actual codes rather than the things we do in the backend interface.
Where can I find these files?
Thank you
You can find in Apperance -> Editor
Normally, your menu bar will be put in header.php file, you can check this file in your-website/wp-content/themes/your-current-theme/header.php , it was printed out through wp_nav_menu() function, if you know about php and wordpress, you can make a cusom Walker class add use it to modify your menu.
Regards
I'm working on my client's website and i have to add custom footer to the theme.
http://businessumpire.com/
The theme doesn't allow to add widget in the footer, is there any way to to add widget in 4 blocks so i can add menu, latest post etc in the footer via widgets.
You should do that overriding the theme or even better making a child theme. Then you should register with register_sidebar() wordpress function a sidebar for your footer and call it from your footer template via dynamic sidebar(). This way you could add all the widgets available to your footer. To add the menu in the footer you can call wp_nav_menu() in the footer`. If you dono't know how to do this you can try to download a theme which has this functionalities and try to adapt your code from there.
I have following navigation structure, which i want to implement in wordpress:
(Home / About / news / Contact) are in top navigation, whereas all sub links are in sidebar.
How can i create this type of navigation in wordpress. i.e. How can i display first level navigation in header and second level navigation in sidebar.
Follow these steps:
First create a main Navigation to your site without child pages and
add it to the theme.
Then create a new menu with child menus only and save it.
Now goto widgets section and from there drag Custom Menu from left
side and add to your sidebar.
Then select your child menu and click save.
Thats all. :)
Check this WordPress Codex section for creating menu tutorial
Cheers!!!
I found these plugins helpful:
Simple Section Navigation
http://wordpress.org/extend/plugins/simple-section-navigation/
It allowed me to create the side nav based on the hierarchy of the pages and their children.
I wanted a bit more control though because I didn't want some of the parents to have their own page ... just a heading for their children. So instead, I'm using this plugin (for the Genesis Framework).
Genesis Simple Sidebars
http://wordpress.org/extend/plugins/genesis-simple-sidebars/
This allows me to create as many sidebars as I want and add custom menus to those. I'm new to this, so maybe I'm taking a long route, but so far it seems to be doing what I want it to.