Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix WordPress HTML attributes values with different quotes – how to fix this?

Discussion in 'Misc WordPress Requests' started by Batollo, Apr 4, 2018.

  1. Batollo

    Guest

    WordPress HTML attributes values with different quotes – how to fix this?, by Batollo

    I’m new to theme dev, but I try my best to write clean code. And I noticed that WP outputs different quotes to HTML attribute values.

    For example, I get lang=”en-US” but at the same futher down the code I see name=’robots’ content=’noindex,follow’.

    Why is that? Is there a way to leverage WP to use only ‘ or ” instead of both? I’m aware that standart permits this both ways, but it’s much easier to read code in one style.

    WordPress HTML attributes values with different quotes – how to fix this?
     
    #1

Share This Page

Monarch Social Sharing Plugin