#171 – tags getting stripped?

Posted in ‘weeblrAMP’
This is a public ticket. Everybody will be able to see its contents. Only enter usernames, passwords or any other sensitive information in the Private information field.
Tuesday, 20 August 2019 18:47 UTC
Hey there,
For some reason, on both posts and pages, <p> wrappers are getting stripped and we're left with just text with no wrapper element, so the text just runs together into itself and into the <h2> elements. I think it was working fine before, but I'm not sure why it's not working now!
Wednesday, 21 August 2019 07:19 UTC

That does not ring any bell really. Maybe the following can help:

1 - How is that content created? Gutenberg? Classic editor?Actually looks like an Elementor widget, not regular WP content
2 - Have you disabled your theme on AMP pages (in weeblrAMP pages)
3 - Have you disabled other plugins on AMP pages? how about Elementor?
4 - What happens if you temporarily switch to one of WP default themes - on both the regular page and the AMP version?

Best regards

PS: unfortunately, today's our last before our annual 2 weks holiday. Hope we can get you sorted out before that but we may not be able to do heavy testing and debugging as usual.
Wednesday, 21 August 2019 14:22 UTC

Sorry, we are closed now. Please feel free to post the information above but we won't be able to process it until we return. In the mean time, make sure you install the latest dev version (from the development versions download area). It has all the latest fixes so there's a tiny chance it might help you.

Best regards

Wednesday, 21 August 2019 14:25 UTC
Hey again,
In the Weeblr settings page (comments and plugins), I turned off the plugin WP Review, and it fixed the alignments. But we need the Reviews to show up :-(.

It sounds like a plugin conflict. Is there anything we can do to fix the conflict? Both WP Review and WeeblrAMP are updated to their latest versions.

I hope you have a wonderful break! Thanks again for all of your quick help!

Best wishes
Wednesday, 21 August 2019 14:54 UTC

It sounds like a plugin conflict. Is there anything we can do to fix the conflict?
I can't think of anything that can be done on the weeblrAMP side without getting a copy of the site and debugging WPReview to understand why it's doing this and how. Then we can understand if a workaround is possible from within weeblrAMP.

But we need the Reviews to show up :-(.
OK, as it happened and to avoid leaving you like this for 2 weeks, I installed WPReview on a local site just to have a look. It does actually do what you describe on my test site. As it turns out, the plugin developers have included specific support for weeblrAMP!!
They add custom CSS and most importantly they also added this code:

add_filter( 'weeblramp_wpautop_function', '__return_false' );

in the /wp-content/plugins/wp-review/includes/functions.php file at line 3591. So I quickly tested that commenting out this line seems to provide proper result:

// commented out this line
//add_filter( 'weeblramp_wpautop_function', '__return_false' );

So if you do the same on your installation and then contact the developers, I'm sure they can remove that line in their next release. I suspect they added this at some point when it was needed but then some changes in weeblrAMP made that line of code obsolete.

You can ask them to contact me by email (email in footer of each page the site) should they want to discuss the matter in more details.

Best regards
Wednesday, 21 August 2019 16:33 UTC
Thanks so much for your help with this -- I believe it worked. I'll post back here if it didn't (not closing the ticket yet), but I appreciate your help even though you're out of office!! Thank you so much again!
Thursday, 05 September 2019 05:34 UTC
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.