Tagged: alt font
- October 3, 2020 at 2:57 pm #388654
Hello, I just purchased this plugin and it seems to work well.
However, my theme incorporates alt font classes into the h2 tags.
The class html is just class=”alt-font”
I see the box to add elements, but I’m not sure if this is relevant?
If this is possible, could you please help me?
Thank you.October 5, 2020 at 12:55 pm #388841
Can you please send me the url of the page where you are having this issue ? I will check and suggest you the solution.
ThanksOctober 5, 2020 at 3:21 pm #388862
So, I just wrote a lengthy reply to this and hit submit and it appears it didn’t post it.
The page I am having issues with is the homepage:
I am using the popular Flatsome theme.
This is one of their layouts which incorporates multiple h2 fonts.
They use class=”alt-font” to switch to a second h2 font in select locations.
If you look where it says:
Reed’s Handmade Incense
High quality and handcrafted
Give Us a Try!
Then you will see that it incorporates the following html code:
<h2 class=”alt-font”>Reed’s Handmade Incense</h2>
My main h2 font is Arvo, but the theme uses this alt-font class to switch the h2 tag to dancing script in those specific locations.
Is this something your plugin supports?October 5, 2020 at 3:29 pm #388864
Do you mean to add font to that h2 element ? If so please use h2.alt-font in custom element box and assign font to it.
ThanksOctober 5, 2020 at 5:46 pm #388884
Yes, I want to add dancing script font to that h2 element.
So, it shows my main h2 font (arvo) in blog posts, etc.
But it would show dancing script h2 font when class=”alt-font” is used.
I tried to add h2.alt-font to element under dancing script in Use Any Fonts and it doesn’t seem to work?October 6, 2020 at 3:42 pm #388990
Please don’t assign open-sans-b font to strong, b. As there is strong tag inside your h2 element.
After that please keep
h2.alt-fontin custom element box and assign font to it.
ThanksOctober 7, 2020 at 10:01 am #389066
Oh, you’re right.
That section has both h2 and strong tags.
I tried the method you mentioned and everything seems to work perfectly now.
Thank you so much for your support Dinesh.
Wonderful plugin by the way.
I was really struggling with a competitor’s plugin recently and yours works much better.October 7, 2020 at 1:06 pm #389105
Glad we could help you.
If you have a few mins for us, can you please write us a review for our plugin at https://wordpress.org/support/view/plugin-reviews/use-any-font?filter=5 ? This will help us grow and makes easier for others to decide to use the plugin.