• Resolved MrTrafic

    (@mrtrafic)


    Hi Everyone,

    I have used Twentyten (which is one of the best of the wp themes SEO wisely) as a basis to create my own theme.

    I’ve managed to do pretty much every thing, but I’m stuck with the search form at the very top right corner of the blog.
    I would like to change the design and text but can’t find the file in which this is managed.

    WHAT I WANT TO DO
    – Modify the text “Recherche pour”
    – Change the button “recherche” with a custom one

    You can see the current design here https://parcs-d-attraction.com

    Any help or advice is welcome ?? !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Don’t edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

    You need to create a new searchform.php template file in your child theme.

    Thread Starter MrTrafic

    (@mrtrafic)

    Hi Esmi,

    Thanks for your advice! ??

    I won’t update twenty ten in the future and the modification I’ve made will be working with any wordpress updates.

    I can’t find any searchform.php file. In the header, a function calls the search form: <?php get_search_form(); ?> but I can’t find that one in any file !?

    If your theme does not have its own searchform.php template file, WordPress uses the default one that is included in the core files. As soon as you create this template file, WordPress will use it.

    Thread Starter MrTrafic

    (@mrtrafic)

    Thanks for the tip!

    I understand know ?? What is the name of the default file used in WP?
    I need it so I can use that as a basis to code my own searchform.php

    Again thanks for your help on this ??

    Try using:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
    <div>
    <input class="text" type="text" value=" " name="s" id="s" />
    <input type="submit" class="submit button" name="submit" value="<?php _e('Search');?>" />
    </div>
    </form>
    Thread Starter MrTrafic

    (@mrtrafic)

    Dude, you rock !
    It works perfectly, I will work on the css and will pu it online soon.

    Thanks for your help !

    No problem ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Twentyten] Modify search form’ is closed to new replies.