Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Page Styling/Theme Missing

Viewing 1 replies (of 1 total)

  • seppy
    Participant

    @seppy

    Hi @sbla

    On the groups pages (where the styling isn’t correct) it seems to still have in the ‘home’ class in your body tags (which has the transparent background)
    `body class=”single-item groups group-home home custom-background”
    `

    So it’s calling this CSS which you don’t want!
    `
    .home #wrapper {
    background-color: transparent;
    border: none;
    margin: 20px auto 20px auto;
    padding: 0;
    }
    `

    Where as the page that it is correctly styling hasn’t got “home” in the body classes.

    `body class=”directory activity custom-background”`

    How are you currently adding the ‘home’ class to body?

    `function add_home_class($classes) {
    if (is_front_page()) {
    $classes[] = “home”
    }
    return $classes;
    }
    add_filter(‘body_class’, ‘add_home_class’);`

Viewing 1 replies (of 1 total)
  • The topic ‘Group Page Styling/Theme Missing’ is closed to new replies.
Skip to toolbar