I'm using the Genesis framework in wordpress, I have a header set with a logo and a menu that currently is displayed under the header, I want it in the header.
I know about the option to use a custom men and drag it to the menu right widget, but that simply does not work, everything is unticked in the menu settings but it just wouldn't snap there, it just stays under the header.
Please check the below link it will help you
https://my.studiopress.com/snippets/navigation-menus/
OR Use This
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );
What actually solved the problem is something I tried before but didn't work.
The first stage is to use the custom menu on the Widgets and drag it to the Menu Right widget, save it and add the menu to it.
In the menu settings, everything has to be ticked off (all the 3 check boxes).
Then I had to insert the logo into the menu right widget and float it to the left to make sure it's aligned properly with the menu.
I hope it helps anyone.
Related
For some reason when I created a footer menu and the location as footer, it also shows up in the top menu location.
I have checked that both menus are set to their correct locations in the Admin -> Menu area and also checked my child theme code to ensure my navigation.php is pulling the correct wp_nav_menu which it is. What is also strange is when the site is in mobile mode, it shows the correct menu and isn't a problem.
I'm lost now as to what else to look into to solve this problem.
Any help is much appreciated.
(just let me know in the comments if you need any screenshots or more info)
In the menu options, there is a checkbox as Display location to enable the location where that menu should place.
Please check the footer menu which has enabled both options Primary Menu &Footer Menu, If so uncheck the Primary menu checkbox.
I tried googling this, but not having much luck...
I have been able to create a menu using wordpress and entering this code in my header:
<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
And this in my scripts part:
function register_custom_menu() {
register_nav_menu('header-menu',__( 'Header Menu' ));
}
add_action( 'init', 'register_custom_menu' );
But it seems that when trying to sort it, using the left side bar in the customize theme mode, it will not sort the menu nor will it remove any part of the menu that I add or remove using it.
From what I can tell it's just pulling my pages that I created within wordpress.
Keep in mind, this is a new theme I'm creating - my first theme. I have no PHP experience. Trying to learn as I go.
Picture of issue
I removed some of the names of the links for public view. I need to figure out how to also style this properly, but I've seen some other posts about it, so I'll review those later.
If someone can help me get this side menu to work with my current menu that would be great!
If you try altering your wp_nav_menu call to the following (no parameters):
<?php wp_nav_menu(); ?>
It should fall back on the first non-empty menu. While you may want additional menus later/will likely want to customize your menu(s) more, this should help with troubleshooting as whatever initial menu you have created (is non-empty) is the menu being edited by the customize page.
From what I can tell it's just pulling my pages that I created within
wordpress.
This likely relates to the setting "Automatically add new top-level pages to this menu" in the menu settings tab. This may be found under Appearance >> Menus, or under Customize >> Menus >> Clicking on the arrow to the right of your primary menu >> menu options (at the bottom of the resulting tab on the left).
Have you tried building the menu through Appearance-->Menu?
In the Wordpress backend, go to "Design > Menus", create a new menu there, add all entries you want to have, give it a name and in the "positions" tab on that page, assign it to the defined position in your theme (header-menu in your case). And disable the option to add all new pages/posts automatically.
How can I remove the burger menus in the Wordpress theme "Eighties" and replace it with a traditional navigation menu (logo left & menu right) above the header image.
I've tried teeaking the header.php and functions.php but my PHP skills are limited and I'm coming up short.
Any help would be much appreciated.
n.b. I can't just change the theme.
theme site: eighties.me
Any details on what you have tried would have helped.
In WordPress in your css tab add the following code to hide the navigation buttons
.site-toggles{display:none}
And I suggest you use a menu plugin for your website.
https://wordpress.org/plugins/tags/navigation
https://wordpress.org/plugins/multi-level-navigation-plugin/screenshots/
Please mark this as the answer if it helps you out. Cheers.
I am trying to reorganize my navigation menu. I want it to have only one product page button and a couple of CMS pages. I don`t want any categories on it. I know how to put additional buttons to the menu, but if I try to remove the category the whole menu disappears. Any suggestion? I am runing the latest magento with a custom theme.
P.S. I tried to edit the top.phtml site but I am not very confident with coding.
Thanks
you can change menu as you want to customize and want to add your link
app\design\frontend\your_package\your_theme\template\page\html
add your link to topmenu.phtml
hope this will sure help you.
You can read this tutorial - Adding Page Links to the Main Menu
I followed this tutorial here to get a "base" theme set up:
http://themeshaper.com/2009/06/22/wordpress-themes-templates-tutorial/
Everything has been working great, but now on the last part, styling the "news feed" page I want the sidebar to show up. Everything in the theme, for what I can understand is set up correctly. There are two widget areas defined in the functions.php "primary" and "secondary", the unmodified functions.php and sidebar.php can be viewed here:
http://code.google.com/p/your-wordpress-theme/source/browse/trunk/functions.php
and
http://code.google.com/p/your-wordpress-theme/source/browse/trunk/sidebar.php
So this is what happens, I go into the appearance -> widgets manager in the admin. The primary and secondary widget area show up on the right.
I drag the categories and recent posts widgets to the primary (or secondary it doesnt matter). I click save on each widget for good measure and then if I browse away and come back the widgets are gone. Nothing is saved.
I'm not using any plugins, I have no 3rd party or custom widgets. These are just the default vanilla wordpress widgets.
I have debugging enabled in the config file but I get no output of any error when I save the widget config. I've even checked the page source after updating the widget and there is no hidden errors at the bottom as some have suggested.
If someone cannot tell me how to fix this, is there anyone that can at least tell me how to debug this, or get some sort of error message from this thing?
Try this
Go to your wp-admin --> and appearance --> widgets
then on the right top you will see a screen options button (a popdown menu) from there Enable accessibility mode and try your widgets
Some suggestions:
-install debug bar http://wordpress.org/extend/plugins/debug-bar/
enable WP_DEBUG in wp-config
try to clear cache / use different browser or computer
I was having this issue and thought I would add my findings and update this post. I am currently running version 4.9.8. I learned that you can not use Camel case as the id.
This line does not work.
register_nav_menu( 'newThemeArea', __( 'New Widget Area', 'theme' )
This line does work
register_nav_menu( 'newthemearea' , __( 'New Widget Area', 'theme' )
In my case, my widget had input fields with type="number", and the min attributes had fractions of numbers -- once I've rounded them up and showed them as ints, it worked.
Set id of widget like
'id' => 'high-light-header',
instead of
'id' => 'highLightHeader',