Home Forums WoodMart support forum Infobox line breaks

Infobox line breaks

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #82298

    kubafon
    Participant

    Hi,
    I have a problem with line breaks in infoboxes. Page doesn’t preserve line breaks defined in WPBakery. It used to work OK while it was designed, but after some time it broke. Unfortunately I didn’t notice which action caused that (update, new plugin etc.). I’ve tried to find the bug, but disabling plugins, deleting functions.php file does not solve the problem.

    Any help on this matter would be very appreciated.

    Best regards,
    Jakub

    Attachments:
    You must be logged in to view attached files.
    #82331

    Artem Temos
    Keymaster

    Hi,

    Please, provide us your admin access so we can login and check this on your side.

    Thank you in advance.

    #82380

    kubafon
    Participant

    Hi,
    please try following credentials.
    Regards

    #82415

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file

    	function woodmart_get_html_block($id) {
    		$post = get_post( $id );
    		if ( ! $post || $post->post_type != 'cms_block' ) return;
    		$content = do_shortcode( wpautop( $post->post_content ) );
    
    		$shortcodes_custom_css = get_post_meta( $id, '_wpb_shortcodes_custom_css', true );
    		$woodmart_shortcodes_custom_css = get_post_meta( $id, 'woodmart_shortcodes_custom_css', true );
    		
    		$content .= '<style type="text/css" data-type="vc_shortcodes-custom-css">';
    		if ( ! empty( $shortcodes_custom_css ) ) {
    			$content .= $shortcodes_custom_css;
    		}
    
    		if ( ! empty( $woodmart_shortcodes_custom_css ) ) {
    			$content .= $woodmart_shortcodes_custom_css;
    		}
    		$content .= '</style>';
    
    		return $content;
    	}
Viewing 4 posts - 1 through 4 (of 4 total)