• Resolved wpprup

    (@wppraesenz)


    Dear Frank,
    as I know from previous questions of mine I know you have a heart for code idiots… πŸ˜€

    Now I would like to exclude two fonts from being optimized:
    https://praesenz-web.de/wp-content/themes/Divi/includes/builder/fonts/ETmodules_v2_4.ttf &
    https://praesenz-web.de/wp-content/themes/Divi/includes/builder/fonts/ETmodules_v2_4.woff

    Not the fonts, but the optimization causes problems (AO shut off: no problem): Creating error messages (in Google Dev Console) and slows the site in page speed (gtmetrix for example).

    I found the thread here:
    https://wordpress.org/support/topic/how-would-i-exclude-modules-from-the-css/

    The fonts are part of the Divi theme, so
    1. excluding the whole style.css in AO would reduce the AO effect, I suppose… but this would let the fonts stay.
    2. And after a research (code idiot) because of your answer in the thread above: removing a font by the child theme is not really possible, only changing it to death – but this then would not prevent from loading it first and causing the same problems. (correct me if IΒ΄m wrong)
    3. Is it effective/working to copy and paste the whole style.css of the parent into the child style.css and delete the ETmodules fonts there?
    Thanks for both, plugin and support and greetings!!

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    yes you could use your child theme CSS, but you would have to dequeue the parent theme CSS to avoid it is loaded.

    hope this helps,
    frank

    Thread Starter wpprup

    (@wppraesenz)

    Thanks for your quick answer!
    Just to clear it:
    So I copy and paste the contents of the parentΒ΄s style.css into the style.css of the child theme and enclose
    <?php wp_dequeue_style( $style.css ) ?>
    into the functions file wp-includes/functions.wp-styles.php
    ?

    The disadvantage I see is that theme updates that include changes in the style.css would now be suppressed…

    • This reply was modified 6 years, 10 months ago by wpprup.
    • This reply was modified 6 years, 10 months ago by wpprup.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    correct, but not sure what $style.css really should be.

    maybe ask ET/ Divi support how not to load those font-files?

    Thread Starter wpprup

    (@wppraesenz)

    Thanks, will do that…

    • This reply was modified 6 years, 10 months ago by wpprup.
    Thread Starter wpprup

    (@wppraesenz)

    Hello Frank,
    after many days I have found the solution! πŸ™‚

    Some time ago I enclosed CSS for inlining and deferring. Some time later Divi changed the links to the fonts in question and so from then on AO (or was it me? πŸ˜‰ ) “creates” an error message!

    So it is a good idea to renew the CSS for inlining/defering now and then – just to give others a hint… can happen with any code/link!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah indeed, if you’re not using the automated “critical CSS”-plugin you will have to update rules yourself regularly! πŸ™‚

    Thread Starter wpprup

    (@wppraesenz)

    Ohhhyesss…now I know… πŸ˜€

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘ETmodules again…’ is closed to new replies.