• Hello!

    I’ve enabled the custom button on the main menu, but I didn’t find an option to open the link in a new tab as it is possible in other menus.

    Is there a way to make that happen, even if I have to hard code it?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey,
    had the same issue and solved it this way:
    Go to your Theme-Editor and open the file template-parts/template-part-mainmenu.php
    In line 81 you can add target=”_blank” in the a-tag.
    So the complete line 81 will look like this:
    <a class="btn-default" target="_blank" href="<?php echo esc_url( get_theme_mod( 'menu_button_url', '' ) ); ?>">

    Hope this helps.
    Kind regards

Viewing 1 replies (of 1 total)

The topic ‘Open custom button in a new tab’ is closed to new replies.