Skip to content

Replace LESS Customizer with CSS Custom Variables #1137

@benlk

Description

@benlk

Time tracking here: HELPDESK-389

A few sites we're hosting on WP Engine are being marked as not mobile-friendly (https://www.google.com/webmasters/tools/mobile-friendly/) . One possible cause appears to be that Google is not recognizing the generated css file created by Largo's Custom CSS option as a valid stylesheet.

In NPQ's case:

  • homepage fails the test: test results
  • the generated CSS is interpreted as the homepage, suggesting that the URL parameter gets stripped: test results
  • the child theme's CSS file is interpreted as not-html on the CDN: test results
  • the child theme's CSS file is interpreted as not-html not on the CDN: test results

So it looks like Google might not be seeing the responsive styles in the generated stylesheet because it strips URL parameters.

Proposed course of testing:

  • make sure that Google stripping URL params is what's happening, with a quick-and-dirty test page written somewhere: echo url params and some test content

If the above is correct:

  • test whether largo detects stylesheets at a non-.css URL

If it does:

  • rename the URL for generated stylesheets
  • preserve URL params used on the generated stylesheet
  • base url (example: /css) should return the appropriate stylesheet for Largo: minified/not, customized output

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions