Writing CSS inside the plugin

Home Forums Use Any Fonts Writing CSS inside the plugin

  • This topic has 4 replies, 1 voice, and was last updated 1 month ago by Stefano.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #519288
    Stefano
    Guest

    Hi!
    I installed your plugin to use a new font that was not expected, and it works perfectly, unlike another plugin of the same kind that has more downloads but does not work.
    The font is “Another Danger”.
    I tried flagging the H1 and it works, except that it obviously changes the H1 font of all the other pages, which I do not want.
    So I disabled the flag on H1 and tried a hundred times to write the line of code inside the plugin, but I just can’t do it, it doesn’t come out.
    Can you please tell me which line of code I have to write to change the font of the red writing “DOFITMIND” (not the first one in the header, that’s an image), the second one in the middle of the homepage.
    Thank you very much if you help me!
    Stefano

    #519291
    Dinesh
    Keymaster

    Hi Stefano,

    Do you mean this section? https://tinyurl.com/22yoovve

    It looks like it is already using the custom font. Let me know if you’re referring to a different section or need further adjustments!

    Best regards,
    Dinesh

    #519351
    Stefano
    Guest

    Hi Dinesh!

    Yes, that’s exactly it!
    Yes, I used it in a plugin called “Premium Blocks for Gutenberg”, because it allows a lot of graphic processing of the text (shadow, character spacing, etc.).
    But by selecting the H1 flag, the font conversion works, only that it also changes all the H1s of the other pages, the fixed ones set by the theme (the page titles), which I don’t want.
    I tried to intercept the lines in the CSS via the Google console, I tried many times but I can’t find the right lines, or maybe I’m doing something wrong in the syntax to write. I know I’m one step away, there’s not much left… eheh

    #519383
    Dinesh
    Keymaster

    Hi Stefano,

    Please keep this in custom element box and assign font to it and this should assign the font to that section only.

    h1.premium-title-header .premium-title-text-title

    Thanks

    #519490
    Stefano
    Guest

    You are great Dinesh! It works, thank you so much for your help!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Writing CSS inside the plugin’ is closed to new replies.