• Resolved nitse

    (@nitse)


    Hello,
    I need your help. I’ve created my custom menu.
    I linked the pages to menu through admin panel and inserted this code to functions.php

    if (function_exists('register_nav_menus')) {
          register_nav_menus (
    			   array (
    				'main_nav' => 'Main_menu')
       );

    I also called the menu function inside sidebar.php:

    `<nav>
    <?php wp_nav_menu(array(‘menu’ => ‘Main_menu’)); ?>
    </nav>`

    The problem is that the first button of the menu is inactive. For example if homepage is in the first place of the menu you can’t click on it. If you also change the order of menu and move up the contact page, same happens.

    Could you help me?

    Thank you !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

    Thread Starter nitse

    (@nitse)

    You’re right:

    https://www.myrto.gr/test/

    It looks like a CSS issue. You need to get your sidebar positioning sorted out. Try using Firefox with the Firebug add-on for this kind of work.

    Thread Starter nitse

    (@nitse)

    You were right ! Thank you !
    I installed firebug (by the way excellent tool! Thank’s for the recommendation !) and I figured out that the bug was inside the aside tag and specifically the width parameter.
    But how can the width parameter affect the button of a menu? And how can I change it ? It is vital to specify the width of the aside.

    aside {
        float: left;
        margin: 150px 0 0;
        width: 181px;
    }

    Nope – it’s the logo div. It’s overlaying the top part of the menu.

    Thread Starter nitse

    (@nitse)

    Thank you so much ! You are right !
    I changed the height of the logo and the button become active!

    Thank you again !

    No problem ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with the first button of custom menu’ is closed to new replies.