• BariVaz

    (@barivaz)


    I would like to enter multiple lines of text in the Tagline field of Blogolife, and have them appear on different lines. I would like to have each sentence appear as different line; for example:

    How it appears after typing data into Tagline field:

    This is the first line. This is
    the second line.

    How I would like to have it appear:
    This is the first line.
    This is the second line.

    Site – https://www.sandiegoseafoodfestival.org

Viewing 6 replies - 1 through 6 (of 6 total)
  • WPyogi

    (@wpyogi)

    Try adding break tags where you want the new lines – guessing something like:

    A Multi-Cultural Culinary Celebration Of Our Abundant Aquatic Resources<br />
    Sunday, April 14, 2013 – 10:00 a.m. unti 5:00 p.m.<br />
    Walker-Wangenheim School Park 10150 Black Mountain Road<br />
    This is a 21 and up event

    Thread Starter BariVaz

    (@barivaz)

    WPyogi – Unfortunately, all that does is add the characters “
    ” to what is already there:

    A Multi-Cultural Culinary Celebration Of Our Abundant Aquatic Resources
    Sunday, April 14, 2013 – 10:00 a.m. unti 5:00 p.m.
    Walker-Wangenheim School Park 10150 Black Mountain Road
    This is a 21 and up event

    Thread Starter BariVaz

    (@barivaz)

    Sorry – forgot the backticks.

    It adds the characters <br /> to what is already there:

    A Multi-Cultural Culinary Celebration Of Our Abundant Aquatic Resources<br />Sunday, April 14, 2013 – 10:00 a.m. unti 5:00 p.m.<br />Walker-Wangenheim School Park 10150 Black Mountain Road<br />This is a 21 and up event

    WPyogi

    (@wpyogi)

    Yeah, I was afraid that might not work. The tagline field is not really intended for that much info. Probably your best approach would be to modify the header.php file to hard code that info instead of the tagline or in addition to it.

    But before doing that kind of change, you’ll need to make a child theme — so that changes won’t be overwritten when the theme is updated.

    https://codex.www.ads-software.com/Child_Themes

    Thread Starter BariVaz

    (@barivaz)

    Thanks WPyogi! I suspected it might require hard-coding, but hoped there was a simpler way.

    I will read the post on Child-Themes before making the hard-code changes.

    WPyogi

    (@wpyogi)

    Okay, it’s really not that hard and I tried out the change on a test site – this is the change you’ll want to make in the new header.php file in your child theme — copy the entire header from the parent theme and then find this section and change accordingly:

    <hgroup class="fleft">
    	<h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
    	<!-- <h2 id="site-description"><?php bloginfo('description'); ?></h2> -->
            <h2 id="customtagline">This is my tagline 1<br />
             line 2 <br />
             line 3 <br />
             line 4 <br /> </h2> <!-- end customtagline -->
    </hgroup>

    Then, we can add some CSS to style it however you want – using the new class that we added:

    h2#customtagline {
       styles go here;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Blogolife Tagline – Multiple lines?’ is closed to new replies.