Line Break type of format on Post Title

Community Forums Forums General Discussion Line Break type of format on Post Title

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Susan 9 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51627

    keconomos@sbcglobal.net
    Participant
    Post count: 26

    I’ve added a </br> on some post titles to get them to format on to two lines the way I want them two, but I’ve noticed that my post title shows up in other places with the </br> html readable- and I feel that they will also be part of seo scans.

    I am looking for a good way to do this. One interesting idea was presented by alchymyth at wordpress support- here it is:


    you could try to replace:
    <?php the_title(); ?>
    with:
    <?php echo str_replace(‘,’,’<br />’,get_the_title()); ?>

    this replaces a comma , in the title with a html linebreak.

    ( if this is only for category 4, make a copy of category.php – or what ever displays this page – and save it under the name category-4.php; then edit ‘the_title();’ )

    Now I might use a character other than the comma but this looks promising. However I have no idea where and how genesis calls the post titles (I think in Library/structure/header but from there I am lost.)

    Any suggestions?

    #67119

    Susan
    Moderator
    Post count: 7991

    As you posted this a while back with no response, I just wanted to check in to see if you are still looking for an answer? If so, check back in here, and I will see if I can get someone to take a look for you.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.