Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › System fonts
- This topic has 7 replies, 2 voices, and was last updated 5 years, 1 month ago by
Ernest Marcinko.
-
AuthorPosts
-
April 8, 2021 at 2:43 pm #32616
deinurlaubsdeal
ParticipantHi there,
on my whole website I am using “system fonts” and I also would like to set this fonts style for Ajax Search Pro. In the styling options I did not see any possibility to make the change.
Could you please help me out or provide custom CSS code for system fonts for Ajax search pro?
Thanks,
CaioApril 9, 2021 at 8:42 am #32629Ernest Marcinko
KeymasterHi,
You can enter custom fonts to the typography here: https://i.imgur.com/rsycD65.png
For simplicity, you can also use a custom CSS to force fonts across all of the plugin elements:
.asp_w, asp_w * { font-family: 'My font' !important; }April 13, 2021 at 2:04 pm #32690deinurlaubsdeal
ParticipantHi Ernest,
I use the following code in custom CSS to have system fonts on my website:
body {font-family: -apple-system, system-ui, BlinkMacSystemFont, “Segoe UI”, Helvetica, Arial, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”, “Segoe UI Symbol”;}
h1,h2,h3,h4,h5,h6 {font-family:-apple-system, system-ui, BlinkMacSystemFont, “Segoe UI”, Helvetica, Arial, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”, “Segoe UI Symbol”;}I used the custom CSS you provided but it does not appear to work for my search bars.
For the method you sent in the screenshot: What should I insert instead of “Your font name”?
Thanks,
CaioApril 14, 2021 at 10:05 am #32702Ernest Marcinko
KeymasterHi,
Those custom CSS rules are not specific enough to override the plugin fonts. Based on your custom CSS, try this:
.asp_w, asp_w * { font-family:-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important; }April 14, 2021 at 10:46 am #32703deinurlaubsdeal
ParticipantHi,
just tried it but for some reason it is stil not working. 🙁
Could you please check again?
Thanks,
CaioApril 14, 2021 at 11:43 am #32704Ernest Marcinko
KeymasterSorry, I made a mistake there:
.asp_w, .asp_w *, .asp-try * { font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important; }April 14, 2021 at 12:13 pm #32705deinurlaubsdeal
ParticipantWorks! Thank you!
April 14, 2021 at 12:18 pm #32707Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.