Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the use of these hidden 8 svgs above the _S themes and where is it created? #1526

Open
yazdi opened this issue Jun 18, 2022 · 2 comments

Comments

@yazdi
Copy link

yazdi commented Jun 18, 2022

I found out that in all the templates created by _s, there are 8 svg codes hidden at the top of the page, what is its use and through which file and code is it created?

This is an image

@manish2384
Copy link

This generated from latest Wordpress update with new Block theme to define colors. To disable this you will have to create theme.json file in your theme and add following code inside it

{
    "version": 1,
    "settings": {
      "color": {
        "duotone": null
      }
    }
  }

This will resolve your question and remove this svgs.

@mrwweb
Copy link
Contributor

mrwweb commented Mar 15, 2023

I believe the officially recommended solution is this:

/* Don't load duotone filters */ remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );

This isn't an _s issue, so can be closed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants