Modify a $0 class

  • Unknown's avatar

    Hello everyone !

    I would like to “display : none;” a class, but she hasnt a name. It’s written
    <li> ==$0 instead of <li class="class-name">

    A screenshot of the problem : https://image.noelshack.com/fichiers/2017/45/1/1509942236-sans-titre.jpg

    It is possible to custom this type of class or should i have to go directly in the css files ?
    Thanks you.

  • Hi there,

    Please wrap HTML code in backticks if you paste it in the forum, otherwise the forum software will try to render the code instead of displaying it.

    For what site is this? The only site in your account is https://bryanlesaussesio.wordpress.com/, and that site is on the free plan so it’s not possible to add custom CSS to it. It also does not match your screen shot.

    If you’re working on a site using the self-hosted WordPress.org software, we are not able to help you in this forum. Please post to the WordPress.org forums instead in that case:

    https://wordpress.org/support/

    That said, the “==$0” has nothing to do with CSS – it’s not inside the li-tag’s angle brackets at all but is something the Chrome browser adds to the code when it renders your site and is used in debugging issues in the console. It doesn’t affect your site at all. See:

    https://stackoverflow.com/questions/36999739/what-does-0-double-equals-dollar-zero-mean-in-chrome-developer-tools

    The li-tag does not display a class because the theme’s developer did not add a class for that element. To add a class to that li-tag you’ll need to edit your theme’s source code, most likely create a child theme, as that’s the only way to change the theme’s HTML itself.

    You might be able to target that list without using a class, though, if you use specific enough CSS selectors. It’s impossible to help you with that without seeing the actual site, though, and the users in the self-hosted forums are in a better position to help you with that anyway if it’s for a site using the WordPress.org software.

  • The topic ‘Modify a $0 class’ is closed to new replies.