• Resolved fastfasterfastest

    (@fastfasterfastest)


    Virtue 2.3.3

    My “Site Tagline – Below Logo” setting is empty, yet it occupies vertical space in the pages. I see a
    <p class="kad_tagline belowlogo-text"></p>
    is emitted even if there is no site tagline and Virtue specifies a 10px bottom-margin for p.

    I see there is a test to control the emitting of the p tag in header.php, but the test seems to always succeed causing the p tag to always be emitted.

    What do I need to specify in Theme Options so a non-existent Site Tagline does not occupy space? Or should the test be updated in header.php so leaving the Site Tagline empty in Theme Options would be sufficient?

    PS: there is an spurious double-quote after “Site Tagline – Below Logo” appearing in the Theme Options page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • hannah

    (@hannahritner)

    Hey, you can get rid of that extra space by adding this to your custom css box in theme options > advanced settings:

    .kad_tagline {
    display: none;
    }

    Hannah

    Thread Starter fastfasterfastest

    (@fastfasterfastest)

    Yes, thanks, I know. And for the time being I am doing that, although I am using a slightly different way:

    .belowlogo-text:empty{
        display: none;
    }

    But the point is/was, that the p tag should not have been emitted in the first place. And you appear to try to do that, to NOT to emit the p tag when there is no tagline, but the attempt fails. You are using isset() in header.php, which appears to always succeed, perhaps using empty() instead?

    In the next update I’ll add a !empty to the line.

    Kadence Themes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site Tagline always occupies space’ is closed to new replies.