Home › Forums › WoodMart support forum › get rid of tags
get rid of tags
- This topic has 9 replies, 2 voices, and was last updated 1 year, 2 months ago by Luke Nielsen.
-
AuthorPosts
-
September 27, 2023 at 8:14 pm #499751
agabriela86Participanthi, im using a freshly installation with last versions of WP and THEME, its creating the <p></p> tags that affects the height in some blocks, how can I get rid of this. see attachment
Attachments:
You must be logged in to view attached files.September 28, 2023 at 9:54 am #499824
Luke NielsenKeymasterHello,
In this case, is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?
Kind Regards
September 28, 2023 at 7:52 pm #500047
agabriela86ParticipantI can’t since I’m working on a LOCAL environment, however I did notice the problem is that
wpautop
adds 2 empty<p></p>
tags in the beginning and end of HTML block that is coming fromfunction woodmart_get_html_block($id)
in linedo_shortcode( wpautop( $post->post_content ) )
after overwriting the function in child functions.php fixed the issue:function woodmart_get_html_block($id) { $id = apply_filters( 'wpml_object_id', $id, 'cms_block', true ); $post = get_post( $id ); $content = ''; if ( ! $post || $post->post_type != 'cms_block' || ! $id ) { return; } if ( woodmart_is_elementor_installed() && Plugin::$instance->documents->get( $id )->is_built_with_elementor() ) { $content .= woodmart_elementor_get_content_css( $id ); $content .= woodmart_elementor_get_content( $id ); } else { $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 ); if ( ! empty( $shortcodes_custom_css ) || ! empty( $woodmart_shortcodes_custom_css ) ) { $content .= '<style 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>'; } //$content .= do_shortcode( wpautop( $post->post_content ) ); $content .= do_shortcode( ( $post->post_content ) ); }
Can you please let me know if this is OK.
September 29, 2023 at 10:07 am #500135
Luke NielsenKeymasterHello,
The function that you mentioned is needed. So in order to investigate the issue in more detail, we need your website or the content from the HTML Block so I can check on my side what is wrong there.
Thanks for your time and have a great day.
Kind Regards
September 30, 2023 at 4:24 pm #500492
agabriela86Participanthi, thanks for your reply, the empty <p></p> tags show up while using WPBakery code in the HTML block content, also I made sure no P tags were generated in the HTML view, will send you all the info to see if you can replicate the issue:
HTML block content:
[vc_row][vc_column][vc_column_text woodmart_inline="no" text_larger="no"]I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.[/vc_column_text][/vc_column][/vc_row]
I’m attaching some screenshots that are useful.
Attachments:
You must be logged in to view attached files.October 2, 2023 at 11:36 am #500750
Luke NielsenKeymasterHello,
Please navigate to WoodMart -> Patcher and apply the
500743
patch, after that recheck the issue and let me know.Thank you for your time and have a good day!
Kind Regards
October 3, 2023 at 10:12 pm #501311
agabriela86Participanthi, I just applied the PATCH but still the same.
What I did notice is there were 2 patches available:
500743
500691I first applied patch 500691 and a alert popped saying 2 .js where going to be modified, and I clicked OK, than I applied the patched made for my issue 500743 but I got the same message from previous patch, I don’t know if patch was suppose to be on same files as other patch or maybe there was a confusion, hope this helps.
October 4, 2023 at 10:06 am #501393
Luke NielsenKeymasterHello,
Could you please clone your website and move it to the staging platform so we can investigate the issue there?
https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/
Looking forward to collaborating with you!
Kind Regards
October 5, 2023 at 6:53 pm #502009
agabriela86Participantafter updating THEME to 7.3.2 and updating WPbakery it was fixed. Thanks
October 6, 2023 at 9:23 am #502118
Luke NielsenKeymasterHello,
Great! In case you need any additional help, I’d be more than happy to assist you.
Wish you all the best.
Kind Regards
-
AuthorPosts
The topic ‘get rid of tags’ is closed to new replies.
- You must be logged in to create new topics. Login / Register