How do I add an alt font class?

Home Forums Use Any Fonts How do I add an alt font class?

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #388654 Reply
    Zippo
    Participant

    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.

    #388841 Reply
    Dinesh
    Keymaster

    Hi,

    Can you please send me the url of the page where you are having this issue ? I will check and suggest you the solution.

    Thanks

    #388862 Reply
    Zippo
    Participant

    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:
    https://reedshandmadeincense.com

    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?

    #388864 Reply
    Dinesh
    Keymaster

    Hi Zippo,

    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.

    Thanks

    #388884 Reply
    Zippo
    Participant

    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?

    #388990 Reply
    Dinesh
    Keymaster

    Hi,

    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-font in custom element box and assign font to it.

    Thanks

    #389066 Reply
    Zippo
    Participant

    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.

    #389105 Reply
    Dinesh
    Keymaster

    Hi Zippo,

    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.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: How do I add an alt font class?
Your information: