Modifying Taglines

  • Unknown's avatar

    Good morning! I’m trying to add two breaks within my tagline and I can’t figure out the code to edit it.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi,
    In the taglines you have used only one “h2” tag.
    If you want the taglines in 3 parts then you should following code using 3 different “h2” tag.

    <h2 class="site-description">Those are really nice slippers</h2></br><h2 class="site-description">….&</h2></br>
    <h2 class="site-description"> other random nonsense</h2>

    I have used “br” tag to give space between two lines.
    If you don,t need space

    Thanks,
    Aakash Patel

  • Unknown's avatar

    Thank you for your response! I entered the above, but I still can’t get it to change anything.

    Clearly, I’m not very good at this.

  • Aakash – that sort of code isn’t suitable for WordPress.com, where folks don’t have access to their theme files. In addition, the tagline is output dynamically in WordPress, based on the words entered in the Customizer, so you just can’t hard-code it that way.

    jamie10679 – it’s not possible to add manual line breaks in a tagline in the Customizer, but it looks like you came up with a clever CSS workaround, so I’ll post it here in case it helps others who might come across this thread in the future:

    .site-description::before {
        content: "Those are really nice slippers....";
        display: block;
        text-align: center;
    }
    .site-description::after {
        content: "and other random nonsense.";
        display: block;
        text-align: center;
    }

    I’ll mark this thread as resolved but feel free to start a new one if you need help with anything else!

  • The topic ‘Modifying Taglines’ is closed to new replies.