• Resolved martinpeake

    (@martinpeake)


    Hi there,
    I have decided to add text layers to my slider. If I use default fonts, any change of size shows up on the preview, but does not appear on my site. Similarly, using a different font shows on the preview within the plug-in but does not appear on the online version. Please can you help?

    Thanks for a great plugin.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter martinpeake

    (@martinpeake)

    Also – I have cleared the site cache on the server.

    Ramona

    (@nextend_ramona)

    Hi @martinpeake

    We’re only storing one version of the slider. So from our end, all changes made are immediate. If you see something looks as you set it in the preview, but not at the frontend that can mean two things:
    – a cache on the site that was not cleared
    – 3rd party CSS codes that are unnecessarily strong

    Looking at your site the problem is that there are unnecessarily strong 3rd party CSS codes on your site that override the look of the font of the p tags:

    .p, p {
      font-family: 'Lato', sans-serif !important;
      font-size: 16px !important;
      font-style: normal !important;
      font-weight: 400 !important;
      text-decoration: none !important;
    }

    This code forces all p tags to use 16px ‘Lato’ font, which overrides the styling you made in Smart Slider.

    The code is inline so it’s hard to tell where does it come from exactly. But the style tag that contains it has the following class: egf-frontend-styles.

    Does this sound like a plugin/theme you installed on your site? There are lots of other unnecessary !important declarations in this style tag, so best would be removing every !important word from there.

    Alternatively, you can mask this problem for now by using the Heading layer:
    https://smartslider.helpscoutdocs.com/article/1814-heading-layer
    and make sure the Tag is set to div, as it seems they don’t force styles for that element.

    Thread Starter martinpeake

    (@martinpeake)

    Hi Ramona,

    Amazing answer – thanks so much. I’m going to nuke all the CSS on the site and start again.

    Have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fonts in Layers not changing’ is closed to new replies.