• Resolved Kennedy7827

    (@kennedy7827)


    I want to add this search feature to my navigation bar so it appears on all pages. I have searched the forum and tried multiple things but just can’t seem to figure it out. Thanks for the help!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Try to open Divi/header.php file, and replace

    <form role="search" method="get" class="et-search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">.....
    </form>

    with

    <?php echo do_shortcode( '[aws_search_form]' ); ?>

    • This reply was modified 6 years, 8 months ago by ILLID.
    Thread Starter Kennedy7827

    (@kennedy7827)

    so replace all this `<form role=”search” method=”get” class=”et-search-form” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
    <?php
    printf( ‘<input type=”search” class=”et-search-field” placeholder=”%1$s” value=”%2$s” name=”s” title=”%3$s” />’,
    esc_attr__( ‘Search …’, ‘Divi’ ),
    get_search_query(),
    esc_attr__( ‘Search for:’, ‘Divi’ )
    );
    ?>
    </form>`
    with

    <?php echo do_shortcode( '[aws_search_form]' ); ?>

    • This reply was modified 6 years, 8 months ago by Kennedy7827.
    • This reply was modified 6 years, 8 months ago by Kennedy7827.
    Plugin Author ILLID

    (@mihail-barinov)

    Yes

    Thread Starter Kennedy7827

    (@kennedy7827)

    It does nothing. I still have the default divi search

    Thread Starter Kennedy7827

    (@kennedy7827)

    Nevermind I did it like this and it worked

    <form role="search" method="get" class="et-search-form" action="<?php echo do_shortcode( '[aws_search_form]' ); ?>
    					</form>
    • This reply was modified 6 years, 8 months ago by Kennedy7827.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add To Divi Navigation Menu’ is closed to new replies.