• Resolved orgassist

    (@orgassist)


    Every time we open an accordion in the back end, we have to reinsert line breaks in HTML. I saw another post that said this issue was resolved over a year ago but we have version 2.1.14 and it’s still a problem.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @orgassist,

    Thank you for your query. Single line break works in accordion content. If someone uses multiple linebreaks to make space larger, it will make a p tag. Because double linebreak/multiple linebreaks get converted into a p tag.

    Hope you got it.

    And where do you place the Easy Accordion section on your website? I could not find any section on the homepage of your website.

    Thread Starter orgassist

    (@orgassist)

    The accordions appear within a membership site, so I created this video to show you the problem.

    https://drive.google.com/file/d/1mIgk9EgU47ImSlqliXrfxcEBRi3EdiRm/view?usp=drivesdk

    First I show you how it is set up now.
    At about 0:35, I show you what happens when I make a change in the Visual Editor.
    Then I show you what I have to do to fix it, every time.

    Thank you for your time.

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @orgassist,

    Thank you for your reply and video. It seems that you need a large spacer to format your text. We will improve the Easy Accordion plugin in the future.

    For now, you can use spacer shortcode [ea_spacer height="25px"] like this screenshot by adding the following code in your website’s current theme’s functions.php file like the screenshot.

    add_shortcode(
    	'ea_spacer',
    	function( $atts, $content ) {
    		$a = shortcode_atts(
    			array(
    				'class'  => 'spacer-1',
    				'height' => '20px',
    			),
    			$atts
    		);
    		return '<div class="ea-spacer ' . esc_attr( $a['class'] ) . '" style="height: ' . esc_attr( $a['height'] ) . '">' . $content . '</div>';
    	}
    );

    Let us know if it helps or not.

    Thread Starter orgassist

    (@orgassist)

    Thank you – it’s perfect.

    Plugin Support Bayejid Ahmed

    (@bayejid00)

    Hi @orgassist,

    Glad to hear that the above code worked perfectly.

    Thanks for appreciating us. If you are happy with the plugin and support, please share your experience in the plugin review section.

    Your each and every word will motivate us to keep doing the hard work and provide the best support as promised.

    Have a wonderful day!

    argh we have simular issue with html code and embedded javascript. In some scripts there are multiple consecutive line breaks, they are converted to </p> <p> and breaking the script. How to disable any content processing? I need to return html exactly as it is. I am using my own template for clear html output and import html content via the api. We use this to convert old websites into pseudo-headless wordpress (crawl sitemap and insert one by one into wordpress).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Line breaks always get removed’ is closed to new replies.