• Resolved ilyapokrov

    (@ilyapokrov)


    After activating the pop-up window, the site styles were lost. For some reason, the plugin has prescribed a lot of CSS that does not concern it. In particular, the appearance of breadcrumbs, headers, buttons, and so on were changed. Added bold font, margins, and colors.

    What the hell? Why does the plugin correct my styles?

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hello @ilyapokrov

    I understand your concern but there’s nothing “incorrect” to be solved in the plugin. The plugin is loading fonts that your theme declares in CSS to be used but doesn’t load. Basically, it’s theme issue – theme is trying to use fonts that it doesn’t make available at the same time.

    It’s a coincidence that Hustle actually loads those missing fonts but “technically speaking” Hustle is actually… “fixing” (coincidentally) your theme.

    Let’s say that you want one wall in your office to be painted green and one to be painted red but you only bought green paint and forgot about red one. So you got plan when it says “this wall should be green and this one should be red” but only one is painted – the green one. Then your associate comes to the office, sees the plan and happens to have red paint at hand so paints that other wall red.

    This is exactly what’s happening here but with fonts used on site instead – your theme “wants” to use specific font but it “forgot to load it” and then Hustle comes and “happens to have this missing font at hand” so it gets applied by the browser.

    Kind regards,
    Adam

    Thread Starter ilyapokrov

    (@ilyapokrov)

    @wpmudev-support8,
    Thank you so much for such a detailed answer, but for some reason no other plugin does this except Hustle. In any case, I’m not asking you to solve this problem on the plugin side, You know much better than I do how to do it correctly. I just want to find a solution to the problem and possibly disable font loading of the Hustle plugin so that there is no conflict.

    Thread Starter ilyapokrov

    (@ilyapokrov)

    The solution was found. My theme support specialist did in a few minutes what you have been trying to solve for 2 weeks.
    To disable the connection of fonts in the Hustle plugin, add the following:

    add_filter( 'hustle_load_google_fonts', '__return_false' );

    Hi @ilyapokrov,

    Glad to hear you found a solution and thanks for sharing it.

    I would still suggest checking this with your theme developers and ask them to either import all the required fonts or avoid using the font weight for a weight that is not registered properly.

    Because this could come back again if you install another plugin that uses the same font and imports and required weights as Hustle does, so that you don’t need to search for filters to exclude fonts each time it happens.

    Cheers,
    Predrag

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘CSS by default’ is closed to new replies.