How to control the font and text in Search?

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

How to control the font and text in Search?

Post by EOM »

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.
Jack Konings
Propeller Head
Posts: 29
Joined: Mon Nov 09, 2015 8:07 am
Location: Ede, The Netherlands

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

Post by Jack Konings »

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
EOM
Propeller Head
Posts: 20
Joined: Wed Oct 10, 2018 9:05 am

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

Post by EOM »

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

Eeva
Post Reply