• Hello all,

    I tried to add some custom CSS to the setting in this plugin but it doesn’t add it to the <head> tag of the AMP page under <style amp-custom>. It’s only a couple of lines and I followed the tips at amp.dev The CSS code I’m trying to add is:

    .elementor-widget-eael-fancy-text {
    position: fixed;
    }
    .eael-advance-tabs .eael-tabs-content > div, .elementor-accordion .elementor-tab-content {
    display: initial; opacity: 1;
    }
    #elementor-menu, #elementor-menu-toggle {
    display: none;
    }

    I’ve noticed that it also doesn’t add the JSON analytics code to the AMP pages like it did in past versions. Although I’ve noticed this section is redundant as Official AMP plugin has an Analytics section as well. I’ve introduced the next code there without amp-analytics and script type tags:

    <amp-analytics type="googleanalytics">
    <script type="application/json">
    {
      "vars": {
        "account": "UA-XXXXXXXX-X"
      },
      "triggers": {
        "trackPageview": {
          "on": "visible",
          "request": "pageview"
        }
      }
    }
    </script>
    </amp-analytics>

    I’m using Autoptimize with CSS minification and caching plugins. Could it be interfering with Glue for Yoast?

  • The topic ‘Extra CSS in Settings>Design not working for me’ is closed to new replies.