Solved

How can i edit sharepoint  "Search" font color

Posted on 2010-09-03
7
813 Views
Last Modified: 2012-05-10
<div class="search">
<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown="search" TextBeforeTextBox="<%$Resources:cms,masterpages_searchbox_label%>" TextBoxWidth="100" GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow.jpg %>"
GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow_RTL.jpg %>" UseSiteDefaults="true" DropDownMode = "HideScopeDD" SuppressWebPartChrome="true" runat="server" WebPart="true" __WebPartId="{}"/>
</asp:ContentPlaceHolder>
</div>
i am looking for The Text before Textbox should show up with white font
search.jpg
0
Comment
Question by:msk_1227
  • 5
  • 2
7 Comments
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33600499
In Internet Explorer, hit F12 to pull up the Developer Toolbar.  Under the HTML tag you will see a mouse cursor button.  Select it and then select the Search text.  It should now have a blue border around it.  In the developer toolbar you will see the actual HTML code being sent to the browser.  This should give you the element name to address in your CSS to override the color.  When doing so, be sure to add "!important" to override the core CSS.

For eg:

#searchelementname
{
color: #FFFFFF !important;
}
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33600504
Under the HTML tab* (not tag)
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33600528
CodeProject has a great tutorial on how to use the IE Developer Toolbar that you might like: http://www.codeproject.com/KB/applications/IE_dev_toolbar.aspx
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Author Comment

by:msk_1227
ID: 33643458
I tryed but it didnt help , How can i edit & save it in sharepoint designer "TextBeforeTextBox"  or  css

<div class="search">
<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown="search" TextBeforeTextBox="<%$Resources:cms,masterpages_searchbox_label%>" TextBoxWidth="100" GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow.jpg %>"
GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow_RTL.jpg %>" UseSiteDefaults="true" DropDownMode = "HideScopeDD" SuppressWebPartChrome="true" runat="server" WebPart="true" __WebPartId="{}"/>
</asp:ContentPlaceHolder>
</div>
0
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33643559
In SharePoint designer, edit the Master page.  In the  section, add the following:

<script type="text/css">
.search, .search a
{
color: #FFFFFF !important;
}
</script>
0
 
LVL 2

Author Comment

by:msk_1227
ID: 33649879
thank you chapmanhw,

in sharepoint designer when i select class search link it leads to core band.css file.
then
.search .ms-sbcell
{
color:white!important;
}
so color: white already exist & i just put !important after that then it worked for me thanks for the post.
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33658213
Great, glad it worked out for you.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question