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
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
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">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
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
Hey!
Add following code to style.css:
#head form#searchform{
position: absolute;
right: 20px;
top: 50px;
}
Regards,
Peter
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
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
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
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
Great Ismael, I solved with your help.
Thank you very much
Francesco
Hi Francesco,
Glad that we could help. :)
Cheers,
Ismael
You must log in to post.