• Any ideas as to why the line breaks/paragraphs don’t work on section content no matter if you are on Visual or Text? I have to add the breaks manually
    which is extremely annoying specially since this is a basic WP function. THey also disappear once in a while.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same problem here. The text go back to no spaces every now and then.

    Thread Starter baalam

    (@baalam)

    Seems like wpautop is not being applied to the theme’s content composer.

    Anybody?

    Thread Starter baalam

    (@baalam)

    Hey loiruca

    I found the problem and fixed it!

    So I was right and wpautop was not being applied to the section content function so you just need to replace this:

    if(function_exists('Form_maker_fornt_end_main'))
    {
    $section_content = Form_maker_fornt_end_main($section_content);
     }
     echo do_shortcode($section_content);

    with this:

    $onetoneContent = do_shortcode($section_content);
    
    echo wpautop($onetoneContent , false);

    You need to do this in all the section files under the home-sections folder of your child theme.

    /wp-content/themes/your-child-theme/home-sections

    Hope this helps!

    Cheers!

    Thanks for your response baalam. However, it didn’t work for me. As soon as I save other changes to other sections it deletes the <p> ??

    Please theme dev, is there any fix to this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Line Breaks/Paragraphs on Custom Section Content’ is closed to new replies.