How to control the font and text in Search?

Postby EOM on Sun Dec 02, 2018 4:32 am

I have not been able to find out how to control the text or the font in the Search box. I'm using a responsive theme.
If I change the text 'Search' in D2H Theme Designer it does not have any effect, the text remains Search. Blanking out the text has no effect either. I would also want to change the font of the Search placeholder, but cannot figure out how to do this.

It would be great if someone could help.
You do not have the required permissions to view the files attached to this post.
EOM
Propeller Head
 
Posts: 20
Joined: Wed Oct 10, 2018 9:05 am

Re: How to control the font and text in Search?

Postby Jack Konings on Mon Dec 03, 2018 12:44 am

Hi EOM,

To change the font of the text in the search box, put following in your user.css:
#c1searchFilter {
font-family: Calibri;
}
'Calibri' is only an example here.
Changing the text itself should work via the Theme designer ('Strings' section of the search settings --> Filter text). You need to recompile your target to see the changes.

Hope this helps
Best regards
Jack
Jack Konings
Propeller Head
 
Posts: 17
Joined: Mon Nov 09, 2015 8:07 am
Location: Ede, The Netherlands

Re: How to control the font and text in Search?

Postby EOM on Tue Dec 04, 2018 8:56 am

Hi Jack, great, thank you very much, this works!

Eeva
EOM
Propeller Head
 
Posts: 20
Joined: Wed Oct 10, 2018 9:05 am


Return to Doc-To-Help General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest