Automattic / _s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
http://underscores.me/
GNU General Public License v2.0
10.92k stars 3.12k forks source link

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

Open yazdi opened 2 years ago

yazdi commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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 :)