Solved

How can i edit sharepoint  "Search" font color

Posted on 2010-09-03
7
797 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now