Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #771538

    Hi Kriesi Team,
    i try to make a break in my Post Title- for example the title of the Post is:

    “Enfold is the best Theme ever“ an i would like to have the output like this

    “Enfold
    is the best Theme ever”

    when i use <br> it works but that is not the right way. i try to use this

    str_replace(” | “, “</br>”, $title);

    so that my Post title looks like this
    “Enfold | is the best Theme ever” an the output is with a line break.

    i try to get it work on the functions-enfold.php- but it doesn´t work.

    Thank you for help

    #772193

    Hey siteraum,

    Maybe this will help you out? http://stackoverflow.com/questions/2726855/elegant-solution-for-line-breaks-php

    Best regards,
    Rikard

    #772201

    hi Rikard,
    thank you for answer, i am not so fit in php but i try it
    Thank you

    #772241

    hi Rikard,
    thats not working for me, perhaps you have another idea? And ist the file functions-enfold.php the right file to get it work?
    thank you Rikard

    #773499

    Hi siteraum,

    Do you mean title that shows is tab in the browser or which title?

    Best regards,
    Victoria

    #774447

    hi victoria, sorry for late reply,
    no i mean the Title when you write a post- and that the post title not have a linebreak <br> when you share- when you share it, its look like this
    “Lorem ipsum dolor sit amet<br> consetetur sadipscing elit”
    but i get a solution from https://codeable.io.
    Thank you

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.