[Support request] custom menu

Home Forums Support custom menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1329611
    limolab

    Hello, i need to custom the header/navigation part of this site: https://aslto3.sviluppo.host/
    because i want that the header/navigation will be exactly like this: https://forum.sviluppo.host/
    the only 2 things that i’m not able to do is to add social icon and search bar in the main navigation.
    Can you help me?
    hope to be clear.
    thanks

    #1329679
    David
    Staff
    Customer Support
    #1329693
    limolab

    Hi, thanks.
    But i’d like to add also two social icons.
    is it possible to do that?
    Thank you.

    #1329785
    David
    Staff
    Customer Support

    As you are using Font Awesome you can update code to this:

    add_action('generate_inside_navigation', 'db_custom_navigation_search', 10);
    add_action('generate_inside_mobile_header', 'db_custom_navigation_search', 10);
    function db_custom_navigation_search() {
        printf(
            '<form method="get" class="search-form custom-nav-search" action="%1$s">
                <input type="search" class="search-field" value="%2$s" name="s" title="%3$s" placeholder="%3$s">
                <button class="button">%4$s</button>
            </form>',
            esc_url( home_url( '/' ) ),
            esc_attr( get_search_query() ),
            esc_attr_x( 'Search', 'label', 'generatepress' ),
            generate_get_svg_icon( 'search' )
        );
        echo '<div class="navigation-icons">
            <a target="_blank" href="#"><i class="fa fa-facebook"></i></a>
        	<a target="_blank" href="#"><i class="fa fa-youtube"></i></a>
        </div>';
    }

    and then a little CSS to move them to the end:

    .navigation-icons {
        order: 40;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.