I have custom fonts downloaded and installed into my WordPress site and want to use those instead of the ones Amelia pulls down from Google's font API. Where is the CSS that needs to be overridden? (I can swap out the font-family property. I just need a hand finding it in Amelia's included CSS).
Also, will you provide me with a PHP function to disable Amelia from requesting Google Fonts? (Again, I can put the PHP snippet in a child theme etc. Just need a hand locating and disabling the correct function).
By the way, fantastic plugin. Thank you in advance for all your help.
I was able to make the changes to the file: file assets/less/frontend/_variables.less
Trying Reset and Save buttons in Amelia -> Customize makes no changes to the frontend. The two fonts, Roboto and Lato, still show up in the Customization drop-down menu. Shouldn't they be removed?
This leads me to believe there is also a reference to Roboto and Lato in another file. Will you be able to confirm this and help me locate any additional references?
This is a suggestion for this by one of our developers, some users implemented this change successfully, so I am not sure why it didn't work for you. I will ask our developers if anything changed or if they have another suggestion regarding this matter and I will get back to you when I get a feedback from them. Please note that they are pretty busy at the moment working on the new version of the plugin, so there can be a slight delay in the response.
Sorry that you waited a bit, but I got a feedback from our developer. You can try with editing the lines that you can see in the attachment. Then, you will probably need to edit the font in the your database directly as well. Please access your database and find and open the wp_options table there (it can have another prefix rather than wp_ depending on your database) - in this table search for the amelia_settings option name and edit it . In the JSON of this option you should find property "font" and change it to the font you want.
Hi,
I have custom fonts downloaded and installed into my WordPress site and want to use those instead of the ones Amelia pulls down from Google's font API. Where is the CSS that needs to be overridden? (I can swap out the font-family property. I just need a hand finding it in Amelia's included CSS).
Also, will you provide me with a PHP function to disable Amelia from requesting Google Fonts? (Again, I can put the PHP snippet in a child theme etc. Just need a hand locating and disabling the correct function).
By the way, fantastic plugin. Thank you in advance for all your help.
Hi Justin,
Thank you for your purchase.
For disabling Google fonts, you can try this out:
access the file assets/less/frontend/_variables.less
and remove these lines:
so they won't be created in a new CSS file (wp-content/uploads/amelia/amelia-booking.css).
After doing this please delete cache, and delete your browser's cache, go to Amelia -> Customize and Save it again.
Hopefully the import will be removed!
Let me know if this helped!
And for adding your own font, you should try adding it to the same file.
If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.
Hi Marija,
I was able to make the changes to the file: file assets/less/frontend/_variables.less
Trying Reset and Save buttons in Amelia -> Customize makes no changes to the frontend. The two fonts, Roboto and Lato, still show up in the Customization drop-down menu. Shouldn't they be removed?
This leads me to believe there is also a reference to Roboto and Lato in another file. Will you be able to confirm this and help me locate any additional references?
Hi Justin,
This is a suggestion for this by one of our developers, some users implemented this change successfully, so I am not sure why it didn't work for you. I will ask our developers if anything changed or if they have another suggestion regarding this matter and I will get back to you when I get a feedback from them. Please note that they are pretty busy at the moment working on the new version of the plugin, so there can be a slight delay in the response.
Hi Justin,
Sorry that you waited a bit, but I got a feedback from our developer. You can try with editing the lines that you can see in the attachment. Then, you will probably need to edit the font in the your database directly as well. Please access your database and find and open the wp_options table there (it can have another prefix rather than wp_ depending on your database) - in this table search for the amelia_settings option name and edit it . In the JSON of this option you should find property "font" and change it to the font you want.
Hope this helps!