Lyoooha
Forum Replies Created
-
I am having a problem removing the Search for: text from the search widget:
.widget_search .screen-reader-text {
display:none;
}is the code Ive found that will do it, but I already tried entering it in 10 different places in stylesheet and it does not work no matter what I do
I looked at the HTML source:
<ul id=”sidebar_content” class=”lessgap”>
<li id=”search-5″ class=”widget widget_search”><h2 class=”widgettitle”>Search</h2>
<form role=”search” method=”get” id=”searchform” action=”http://finefocusfilms.com/blog/” >
<div><label class=”screen-reader-text” for=”s”>Search for:</label>
<input type=”text” value=”” name=”s” id=”s” />
<input type=”submit” id=”searchsubmit” value=”Search” />
</div>
</form>
<li id=”calendar-2″ class=”widget widget_calendar”><h2 class=”widgettitle”>Posts Calendar</h2>
<div id=”calendar_wrap”><table id=”wp-calendar”>the part of code screen-reader-text seems to be correct, so it should work, but since I already tried putting in so many places and it still does not work I dont understand what I might be doing wrong, and beginning to sense that it is not the location of stylesheet where I am pasting it that is not right here.
I tried including it in general section, sidebar sections, main, widget section, search section and no matter where I include it it does not effect my search for text.
Should I still do it through stylesheet (If some kind gentleman helps me figure this out) or maybe there is a way to edit HTML directly? (though I dont know where I would do that)
Based on HTML it seems all I need to is remove the text from the source, LOL, but dont understand if it is directly editable like that in wordpress.
SOS once again :)\\\THANK YOU!!
Dear gentlemen,
I have added the following to sidebar.php and everything fixed:
<ul id=”sidebar_content” class=”lessgap”>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>
<li id=”search”><li id=”calendar”>
<?php endif; ?>
This is a basic markup I found in support section,
however I edited it to use the style part of my stylesheet. Keep in mind in desperate efforts to get this fixed before I came to the forums, I already removed so many code elements and basically edited ALL styles I could find for sidebar to list style:none and no backgrounds, so as soon as I included list format in sidebar.php the bullets were gone. But I simply included ul, li, li, ul with no content within.
I could never expect that to make sidebar work I have to make a list from within, even if it is a blank list that will no be visible at all…. that info was new to me and I am very happy I was able to resolve it with you kind and generous help fellow programmers.
You guys have helped me tremendously!
I truly appreciate you fast assistance and contribution to the community. I love the forum culture of the web, I cannot imagine my life without it, whether it is programming, vehicle repair or any other info one may need – amazing help to all of us newbies in the world!!!!!
Thank you for some reason I thought list format is optional,
I appreciate your support and prompt reply!
I validated the css in attempt to resolve the issue before posting here but the validator results were like a horror story several pages long 🙂 i am not too sure where I will begin to correct it but I need further reading first, I am sure