-
I have discovered a conflict between RankMath’s table of contents feature and MemberPress. When I create a rule in MemberPress to lock a post’s content by using the “more” tag to show a post excerpt before the member login form, if the post has a RankMath table of contents, the “Contents” heading is missing and the CSS for the list elements is altered (i.e., extra spaces are created below each list item).
I have already alerted MemberPress to this problem, but they said the problem was on your end. I am not so certain as they previously told me that a different problem was on Divi’s end (I use the Divi theme by Elegant Themes), but after I persisted otherwise, they finally did fix the problem on their end. That said, I would appreciate help troubleshooting to diagnose the problem and find a solution.
-
Hello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
Regarding CSS issue, I see the theme CSS is taking effect. The CSS
#post_content ul li, #post_content ol li
adds a bottom padding of 1em. That’s why you see big space at the bottom and left. You can add this CSS WP Dasboard > Appearance > Customize > Additional CSS..wp-block-rank-math-toc-block li { padding-bottom: 0 !important; }
Regarding the Table of Content, we need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Regarding the list spacing, I had already used the following CSS to remove the padding:
#rank-math-toc li, #rank-math-toc ul {
padding-bottom: 0px !important;
}That works except for when I add a MemberPress rule to the post to lock the content using the “more” tag to show an excerpt followed by the member login form. I added your suggested CSS, and that worked. Thanks.
I’ve provided the admin access credentials as requested.
Hello,
Thank you for providing additional information.
I ran the troubleshooting and when MemberPress plugin is deactivated, the heading shows correctly as you have already pointed out. So, Rank Math is working as intended and only when MemberPress is active, it’s not working.
I would suggest, please contact MemberPress support folks and let them know about this.
Let us know how it goes.
Looking forward to helping you.
Thank you
That is not a helpful reply because, as I have already informed you, I contacted MemberPress support before I contacted RankMath, and they insisted that the problem is on RankMath’ end. If RankMath insists otherwise, I will need more detailed information to provide to MemberPress as an explanation for why they are wrong and why the problem is on MemberPress’s end.
Hello,
Are you able to retrieve the feedback from Memberpress on why our plugin is causing this?
When Memberpress is activated, it simply just takes out our H2 tags without any actions from our plugin so there must be logic from their end to hide it when the content lock is initiated.
At the moment, we don’t have any knowledge as to why this is happening because the block is working fine if Memberpress is not locking the content.
I went ahead and tried a different TOC plugin (in this case SimpleTOC) to test this out further and Memberpress removed the whole block as you can see in my screenshot here:
We really look forward to hearing back from you. Thank you.
Thank you for that feedback. I am also having a problem with a Thrive Leads opt-in form not appearing in the post excerpt when the content is locked by MemberPress below the “more” tag. In fact, I tried adding numerous different blocks to the top of the post, including a GiveWP donation form, a post author biography block, a tag cloud block, and a YouTube embed block. Only the YouTube video appeared when viewing the page in an incognito window. Everything else was somehow stripped from the page.
I also noticed today that the “Table of Contents” heading is now appearing on my test post, which I assume is because either MemberPress or RankMath did something to fix that problem. Was that you?
It seems obvious to me that there is an issue with how MemberPress renders the excerpt, but they have been adamant that it’s a problem with everything else and not their plugin, which they claim is not removing the content.
I received a response today from MemberPress about the Thrive Leads form not appearing, in which they provided some coding details bout how they render the excerpt. I have tried pasting it here, but I keep getting an error upon submission that I am being blocked from this website. Please let me know hot to get that information to you.
Hello,
Thank you for providing additional information.
You can paste the code block using “code” tag in the editor or you can even add that in the sensitive data section.
Looking forward to helping you.
I had already tried adding it in the sensitive info area, but that resulted in the same “blocked” error. I just tried the code tag option here, too, and that also failed. So, I’ve just put it in a .txt file uploaded to my staging site. I’ll paste the link in the sensitive info area momentarily.
Hello,
Thank you for that, I have accessed the txt file you shared.
The fact that the issue is also happening on other plugin/theme blocks, not just from our blocks, indicates that MemberPress is somehow stripping it as it is only the plugin that involves modifying the content on the frontend.
Kindly inform the developers from the MemberPress team that there may be other code in play that made it possible to remove unwanted elements.
We can’t evaluate their plugin’s entire code as we can’t verify that the issue is caused by our plugin (and due to time constraints as well for our staff).
You may also contact the support team from Thrive about their findings about this and share this with us so I can pass this on to our developers.
Looking forward to helping you.
Thank you. I have forwarded your reply on to the MemberPress support team. I also passed on to them this response from Thrive support:
What we do is on “the_content“ hook (priority 20) we wrap the content in a div for which we search later using javascript.
The problem is, none of the selectors show up in the content, which means they’re overwritten while the plugin creates its excerpt. We’ve tried changing the priority on the hook but nothing changes, they probably use a different hook to make the changes.
We can add an extra selector in the js but that will only be available with the next release, and we are unsure if this will cover all the situations.
The excerpt shouldn’t remove everything from ”the_content” hook.I will provide an update once I learn more.
Hello,
Sure, do let us know what MemberPress says.
In the meantime, please do not hesitate to let us know if you need our assistance with anything else.
Thank you
I have an update from MemberPress. Although initially insisting that the problem was not on their end, they finally acknowledged that this was a bug that was causing Gutenberg block content from rendering, and they have provided me with a fix on my staging site. The RankMath TOC is now appearing correctly, and other blocks I tested now also show up when the post content excerpt is wrapped in their content locking div elements. I am told this fix will be included in their next update. Thanks for helping me troubleshoot this.
Hello,
We are glad it worked for you.
If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.
Looking forward to helping you.
Thank you.
The ticket ‘RankMath conflict with MemberPress’ is closed to new replies.