Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #1171200

    Hello,
    I have a menu which is displayed as icon. But i was wondering about if it is possible to add a menu item to the left of this icon? I just want to have this menu item at one page, and not the others.

    Is there any tips to fix this?

    #1171235

    Hey wtek,

    Well, it is better to add the widget area to the header and assign the link there in the text widget.

    Best regards,
    Victoria

    #1171263
    This reply has been marked as private.
    #1171526

    Hi wtek,

    You will need to add and activate the child theme for the changes made in the files to not be overwritten by an update.

    Best regards,
    Victoria

    #1171563

    Hi,
    I activated the enfold child theme now, it did not work out with the widget.

    #1171608

    Hi wtek,

    What do you mean by “it did not work out with the widget”? Did you get errors or did it show up in the wrong place?

    Best regards,
    Victoria

    #1171609

    I dont really know. The picture i added to the widget did not show up.

    #1171940

    Hi wtek,

    Did you add the code from the docs to your functions.php? If not, please do it and we can help you do the rest.

    Best regards,
    Victoria

    #1171958

    Now it should be in place.
    Just do what you need.

    /Ole

    #1172326

    Hi wtek,

    Thanks for the information, you can check your site now.
    We have replaced this hook ava_before_bottom_main_menu to ava_main_header since it does not work when main menu is not located at the bottom of the logo.
    After that, we have added this CSS code in Quick CSS, located in Enfold > General Styling:

    #header #media_image-2 {
        position: absolute;
        top: 0;
        right: 140px;
        width: 208px;
    }

    Let us know if you need further assistance.

    Best regards,
    Nikko

    #1172418

    Allright, Thank you! Is it possible to only get this header visible at some page and not everyone?

    #1172419

    I have also replaced the image which was in the header before with a custom menu. Could you help me to place it right with the css code? Thank you.

    #1172501

    Hi,

    Please try this CSS as well:

    #nav_menu-2 {
        position: absolute;
        right: 130px;
    }

    Which pages would you like to hide what for?

    Best regards,
    Rikard

    #1172526

    Thank you, the possition worked, but i cant click on the menu item now..

    I only want this menu widget to be visible at this page: https://www.wtek.no/it-drift/

    /Ole

    #1172632

    Hi wtek,

    Please try to replace this code in your child theme’s functions.php from:

    add_action( 'ava_main_header', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
      dynamic_sidebar( 'header' );
    }

    to:

    add_action( 'ava_main_header', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
      if( is_page( 3777 ) ) {
        dynamic_sidebar( 'header' );
      }
    }

    Let us know if this helps.

    Best regards,
    Nikko

    #1173159

    Hi,
    I changed the code, and it mostly worked out. The menu item is only visible at the correct page, but i cant still click on it.
    Is it posible to set the same possition by the screen size? I see when i get to an superwide screen the position get wrong..

    #1173457

    Hi wtek,

    For it to be clickable please replace this code:

    #nav_menu-2 {
        position: absolute;
        right: 130px;
    }

    to:

    #nav_menu-2 {
        position: absolute;
        right: 130px;
        z-index: 2;
    }

    As for positioning in wider screen, you can use this code:

    @media only screen and (min-width:2048px) {
      #nav_menu-2 {
        right: 160px;
      }
    }

    just replace min-width and right value.
    Hope this helps.

    Best regards,
    Nikko

    #1173574

    That worked great!

    #1173672

    Hi wtek,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1173673

    Think i´m good with this case.

    #1173697

    Hi wtek,

    Great :)

    We are closing the thread then.

    Best regards,
    Victoria

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘Add additional menu in header’ is closed to new replies.