Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author PeoplesGeek

    (@peoplesgeek)

    Hi John, @healthysolutions4living ,

    Thank you for letting me know about this although there isn’t anything that I know of that I can do inside the plugin.

    You might also want to reach out to your theme developer as they might be able to assist you. The theme controls how content is displayed on the front end.

    I don’t think you will get much joy with the Trac ticket that you have raised because technically a webpage is designed to remove any extra whitespace. The recommended way of doing this would be to use your theme CSS to make the bullets embed properly on your site.

    You might try using ‘non-breaking spaces’ but you may have trouble inserting them and they are more likely to cause you formatting issues later on.

    I can’t assist you with theme CSS as free support but if you get really stuck let me know and perhaps we can work something out.

    Good luck and I will watch the ticket in Trac,

    Cheers,

    Brian

    @healthysolutions4living
    I suspect the theme causes the difference in how the product description is displayed after updating.

    You have at least a few options for consistent formatting, without replacing the theme:

    1. If you can, use HTML list tags and nest them properly instead of using bullet-point characters. With this plugin, it’s rather tricky because it’s not using a WordPress editor and all the list items would need to be in one line.
    <ul><li>top-level list item 1 <ul><li>nested, indented list item 1 </li><li>nested, indented list item 2 </li></ul></li><li>top-level list item 2 </li></ul>

    2. If creating HTML tags is too difficult here, you could use non-breaking spaces ( ) to indent the lines. After clicking the Publish button (or Update), these may appear the same as regular spaces in the edit box, but they should work on the front end.

    3. If you want to try changing the style for all products at once, you could see if you prefer adding these two lines to the theme’s CSS:

    
    .pg-sas-product {white-space: pre-wrap;}
    .pg-sas-product br {display: none;}
    

    One way to add CSS: Under “Appearance” in the side menu, select the “Customize” link. Then “Additional CSS” should be the last customization section. Open that section, paste the two lines of code above into that field (if something is already there, insert at either the beginning or end). If you like the way it displays, click the “Publish” button.

    @peoplesgeek
    You already replace line breaks in the textarea with HTML line breaks, so it is reasonable to extend that custom formatting by replacing multiple consecutive spaces with one non-breaking and one regular.

    If you create a new variable for the description, it’s probably safe to use
    str_replace( " ", "&nbsp; ", $new_description_variable_name )

    (the first is two regular spaces)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New WP release problems….FYI’ is closed to new replies.