Site logo

[Resolved] Can’t see the code in simple css

Home Forums Support [Resolved] Can’t see the code in simple css

Home Forums Support Can’t see the code in simple css

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1760584
    Annalena

    Hi! When pasting this code in simple css and saving, it doesn’t appear, where does it go?

    <link rel=”preload” as=”script” href=”script.js” />
    <link rel=”preload” as=”style” href=”style.css” />
    <link rel=”preload” as=”image” href=”img.png” />
    <link rel=”preload” as=”video” href=”vid.webm” type=”video/webm” />
    <link rel=”preload” href=”font.woff2″ as=”font” type=”font/woff2″ crossorigin />

    Kind regards

    #1760604
    Stacey Usborne
    Staff
    Customer Support

    Hi there,

    You should insert that into a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/

    You’ll want to put that in the wp_head area.

    Let me know if you have any questions.

    #1760649
    Annalena

    Thank you Stacey! I did this with another code a couple of days ago and have already forgotten how to do it. If I would like to see all my other questions I’ve asked you guys, is there a way to find them on your site? Was the code I pasted correct or does it need anything in front or at the end?

    Thanks!

    #1760661
    Leo
    Staff
    Customer Support

    You can find your forum topics under your forum profile:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#forum-profile

    #1760676
    Annalena

    Hi! Was the code I pasted correct or does it need anything in front or at the end?

    <link rel=”preload” as=”script” href=”script.js” />
    <link rel=”preload” as=”style” href=”style.css” />
    <link rel=”preload” as=”image” href=”img.png” />
    <link rel=”preload” as=”video” href=”vid.webm” type=”video/webm” />
    <link rel=”preload” href=”font.woff2″ as=”font” type=”font/woff2″ crossorigin />

    Can you try if my site works in Canada? anleja.se
    I think I have broken it when deleting some plugins.

    Thanks!

    #1760678
    Leo
    Staff
    Customer Support

    The code looks fine to me.

    This is the page I’m seeing:
    https://www.screencast.com/t/T60lIkIbM0QC

    #1760691
    Annalena

    Thank you Leo! I don’t know who to ask so I’ll ask you. Do you think WP Fastest cache is worth to test the premium version?
    I have tried other plugin but they are far too complicated.

    Best regards!

    #1760697
    Leo
    Staff
    Customer Support

    I can’t comment on that unfortunately.

    We only use Autopimize for our sites and no caching plugin:
    https://docs.generatepress.com/article/configuring-autoptimize/

    #1760777
    Annalena

    Hi! I’m sorry to bother you but I also have Autoptimize on my site, don’t I need a cache plugin?

    Thanks!

    #1760827
    David
    Staff
    Customer Support

    Hi there,

    Autoptimize doesn’t include a Cache – it simply optimizes the files.
    Personally i leave Caching to the Server as theres less risk of one plugin interfering with another.

    If you do choose to use a separate Cache Plugin such as WP Fastest Cache or WP Rocket then you must ensure that the two plugins DO NOT have the same options selected.

    So if you have combine CSS files enabled in Autoptimze you should NOT enable it in the Cache plugin.

    #1761439
    Annalena

    Hi! I couldn’t find combine CSS file in Autoptimize. If I have WP fastest cache can I delete Autoptimize or vise versa? Or can I delete them both if my host provides cache?
    What plugins do I really need? I have GP full package and I’m using Elementor and WooCommerce. I don’t know which of all my plugins slow my site down. I should say that I need GP, Elementor and WooCommerce but have a lot of other plugins.

    You’re the best!

    #1761441
    Annalena

    #1761622
    David
    Staff
    Customer Support

    If your server has page caching then I personally would just use Autoptimize. You can see our recommended settings here:

    https://docs.generatepress.com/article/configuring-autoptimize/

    #1762127
    Annalena

    Hello! When looking at your fill in Autoptimize recommendation I see that you have written: seal.js,js/jquery/jquery.js, and in the CSS option: wp-content/cache/,admin-bar.min.css,dashicons.min.css, should I do that too?

    Thanks!

    #1762365
    Ying
    Staff
    Customer Support

    That’s our recommendation, follow or not, it’s your personal choice 🙂

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.