Skip to content

Wrong body_class #8

Description

@mrleblanc101

Salut,
I've just noticed a problem while refactoring our code to use your plugin.
Since all our pages are not "home" page, and not archive, they all have the "blog" body_class.
I think maybe we should add a custom class, like "home home-$post_type", and only keep "blog" for the page for posts.

Current:

<body
    class="
        blog
        logged-in
        admin-bar
        wp-theme-lbo_starter
        theme-lbo_starter
        woocommerce-js
        woo-variation-swatches
        wvs-behavior-blur
        wvs-theme-lbo_starter
        wvs-tooltip
        tinvwl-theme-style
        woocommerce-uses-block-theme
        woocommerce-block-theme-has-button-styles
        customize-support
    "
>

Instead:

<body
    class="
-       blog
+       home
+       home-used_products
        logged-in
        admin-bar
        wp-theme-lbo_starter
        theme-lbo_starter
        woocommerce-js
        woo-variation-swatches
        wvs-behavior-blur
        wvs-theme-lbo_starter
        wvs-tooltip
        tinvwl-theme-style
        woocommerce-uses-block-theme
        woocommerce-block-theme-has-button-styles
        customize-support
    "
 >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions