Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #15865

    Hi,

    I would like to put a “search box” (in italian language) on top of my site, above the Menu/Slideshow.

    Is it possible? What is the exat procedure?

    Thank you very much

    Francesco

    #89282

    Create a new file and call it searchform.php. Open up the file and paste following code into it:+

    <form action="<?php echo home_url( '/' ); ?>" id="searchform" method="get">
    <div>
    <input type="submit" value="Go" id="searchsubmit" class="button"/>
    <input type="text" id="s" name="s" value=""/>
    </div>
    </form><!-- end searchform-->

    You can replace the word “Go” with any other text. Save the file into the cubit theme folder (which contains index.php, style.css, etc. too).

    At least open up header.php and replace:

    <ul id="nav">

    with:

    <?php get_search_form();  ?>
    <ul id="nav">

    #89283

    Thank you very much Dude,

    I solved but I would insert Search Box on top to the right.

    See this screenshot: http://snag.gy/xvrlo.jpg

    Is it possibile? What is the exact code to get it?

    Thank you again

    Francesco

    #89284

    Hey!

    Can you post a link please? I need to investigate the website with Firebug before I can provide some custom css code.

    Best regards,

    Peter

    #89285

    Ok Dude,

    the link is http://www.impiantienergetici.com/

    Thank you

    #89286

    Hey!

    Add following code to style.css:

    #head form#searchform{
    position: absolute;
    right: 20px;
    top: 50px;
    }

    Regards,

    Peter

    #89287

    Great Dude,

    do you know how to remove the date from the “Page” and the text “Comment off”?

    See example: http://snag.gy/XcpRn.jpg

    Thank you

    Francesco

    #89288

    Hi,

    I wasn’t able to find the date and comment off on the page. Were you able to correct? If not, could you provide a link to the page those appear on so we can give exact CSS.

    Regards,

    Mya

    #89289

    Hi Mya and thank you for your kind answer.

    If you go on http://www.impiantienergetici.com,

    digit “normativa” (without ” “) in the box search and

    click on Cerca, you can see that in Search Results

    appears the date (30.08.2012) and the “comment off” as text near the date 30.08.2012.

    I would like to remove date and text.

    I hope my desctiption is clear.

    Thank you very much

    Francesco

    #89290

    Hi Francesco,

    Try to add this on the bottom of wp-content/themes/cubit/style.css:

    .entry .meta_subpage {
    display: none;
    }

    or this one:

    .entry .meta_subpage {
    display: none !important;
    }

    Hope this helps. :)

    Regards,

    Ismael

    #89291

    Great Ismael, I solved with your help.

    Thank you very much

    Francesco

    #89292

    Hi Francesco,

    Glad that we could help. :)

    Cheers,

    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘seach box on top – Cubit theme’ is closed to new replies.