• Resolved inthecarbehind

    (@inthecarbehind)


    Hi there!
    I need to change the search in the header in Nitro Theme.
    It doesnt work with the seamless integration.
    I tried
    echo do_shortcode( '[aws_search_form]' );
    in seachform.php by replacing the form tag
    and some code you provided to another user to add to functions.php

    It didn’t work for me, nothing changed.

    Thanks in advance!

    P.S. As a widget it works amazing!

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

    (@mihail-barinov)

    Hi,

    You are talking about search form in Nitro theme that opens full screen when you click on magnifying glass icon in the header?

    Thread Starter inthecarbehind

    (@inthecarbehind)

    Yes, that one!
    I can change to the classic one if it matters.

    Plugin Author ILLID

    (@mihail-barinov)

    It is strange because I just enable seamless integration for Nitro theme and its change form on full screen with plugin ones.

    Thread Starter inthecarbehind

    (@inthecarbehind)

    Hi there!
    I confirm that it still doesn’t work

    Plugin Author ILLID

    (@mihail-barinov)

    Can you please tell me your theme version number?

    Thread Starter inthecarbehind

    (@inthecarbehind)

    Hi!
    1.6.8

    Plugin Author ILLID

    (@mihail-barinov)

    Hm, I thought that you are talking about this theme – https://ww.wp.xz.cn/themes/nitro/
    But it is only version 1.0.2.
    Can you give me the link where I can find this theme?

    Regards

    Thread Starter inthecarbehind

    (@inthecarbehind)

    Hi!
    This is the theme I have http://nitro.woorockets.com/
    I was unaware that there is another one with the same name.

    Cheers

    Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    I find the solution for you. But you will need to make some changes in your theme code.
    Please open wr-nitro/woorockets/templates/common/header.php file, find lines

    $wr_nitro_header_html[] = '												<form class="' . $wr_class_outer . '" action="' . esc_url( home_url( '/' ) ) . '" method="get" role="search" ' . WR_Nitro_Helper::schema_metadata( array( "context" => "search_form", "echo" => false  ) ) . '>
    															<input required type="text" placeholder="' . esc_attr( $wr_hb_item['placeholder'] ) . '" name="s" class="txt-search extenal-bdcl">
    															<input type="submit" class="btn-search" />
    														</form>';

    and replace with

    $wr_nitro_header_html[] = aws_get_search_form(false);

    Also you will need to add following theme to theme style.css file

    .aws-container {
    width: 300px;
    }
    • This reply was modified 7 years, 4 months ago by ILLID.
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Shortcode in Nitro theme’ is closed to new replies.