This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

menubar search

Resolved 10 replies premiumthemetheme-vantage
10 years ago · Last reply by Andrew Misplon 10 years ago

Updated to vantage premium 2.4.2 – the search in the masthead menubar now has a persistent drop down search box on first loading (see http://nearlylegal.co.uk/blog/ ). Is there a way to toggle this so that it appears on click on search icon rather than by default?

Also, on first updating to 2.4, the background header image was removed, despite the theme being a child theme. The background image had to be re-coded into the child theme style.css and using custom.css didn’t seem to over-ride it. I solved the problem, but it was an issue with the update.

URL: http://nearlylegal.co.uk/blog/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

10
  1. Andrew Misplon Staff 10 years, 10 months ago

    Hi Nearly Legal

    Sorry to hear about the hassles. Please can you check your child theme. Is there a searchform.php file in there? If so, please could you check searchform.php in the parent theme as there were updates made to that file.

    Thanks

  2. Nearly Legal 10 years, 10 months ago

    Hi – there is a searchform.php in the child theme. What am I checking for in the parent theme searchform.php ? And should it be taking precedence over the child theme version, which should be unchanged?

  3. Andrew Misplon Staff 10 years, 10 months ago

    Sorry for not explaining further. I didn’t look into exactly what the guys changed there. Sure, your searchform.php will remained un-changed in the child theme. If however an adjustment was made to the JavaScript or CSS that the form uses you’ll run into a problem. My idea was to check the new searchform.php and merge it with your current searchform.php. So basically move whatever changes you made the file, over to the new version.

    Here is the new version:

    <?php
    /**
     * The template for displaying search forms in vantage
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?>
    <form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    	<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" placeholder="<?php esc_attr_e( 'Search', 'vantage' ); ?>"/>
    </form>

    And here is the old version:

    <?php
    /**
     * The template for displaying search forms in vantage
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?>
    <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    	<label for="s" class="assistive-text"><?php _e( 'Search', 'vantage' ); ?></label>
    	<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search', 'vantage' ); ?>" />
    	<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'vantage' ); ?>" />
    </form>

    I’ll run a diff inspection in a moment and try help out a bit more :)

  4. Andrew Misplon Staff 10 years, 10 months ago

    Perhaps you could let us know what you changed in searchform.php or just paste your version here. We can then help merge those changes into the new version. Should be the fastest way to proceed.

  5. Nearly Legal 10 years, 10 months ago

    Thanks for this so far. I hadn’t changed anything. The behaviour and appearance of the in menu search changed with the 2.4 or 2.4.2 update.

  6. Nearly Legal 10 years, 10 months ago

    This is searchform.php from the child theme

    <form method="get" id="searchform" action="” role=”search”>

    <input type="text" class="field" name="s" value="” id=”s” placeholder=”” />
    <input type="submit" class="submit" name="submit" id="searchsubmit" value="” />

  7. Nearly Legal 10 years, 10 months ago

    Sorry missed the code tags

    <?php
    /**
     * The template for displaying search forms in vantage
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?>
    <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    	<label for="s" class="assistive-text"><?php _e( 'Search', 'vantage' ); ?></label>
    	<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search', 'vantage' ); ?>" />
    	<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'vantage' ); ?>" />
    </form>
  8. Andrew Misplon Staff 10 years, 10 months ago

    Thanks for confirming. If you haven’t made any changes to searchform.php you should be able to remove it from your child theme. Can you perhaps give that a try?

  9. Nearly Legal 10 years, 10 months ago

    Perfect – that worked. Thank you!

  10. Andrew Misplon Staff 10 years, 10 months ago

    Super, glad that helped. All the best :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread