• Resolved swissspaceboy

    (@swissspaceboy)


    Hello,

    I have been testing this plugin a bit. Post locking and shortcodes are working fine ??

    However, when a full post is restricted, I see in my post:
    1. excerpt + “join” button: OK
    2. instead of my page footer, the excerpt + join button is again repeated at the bottom of my page. There is no footer anymore -> very ugly page.

    Root cause: my theme (from Bold Themes) is using “the_content” also to display the (complex) footer. So you have twice the content. I guess that in your code you replace the content each time, so also for my footer ??

    Request: replace only the content of the main query. There are some functions available to test if you are in the main loop or not (is_main_query, is_singular).

    I can beta test a fix if you like.

    Many thanks.

    Didier.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi Didier,

    Thank you for reaching out to Paid Memberships Pro.

    We don’t have a solution for any of the Bold Themes but had similar issues with other themes that do things similarly.

    Here is a code snippet for Avada Theme as a sample of how to remove the Paid Memberships Pro content for the header or footer area of the theme. I am assuming Bold Themes has something similar that you could leverage to remove this – https://gist.github.com/andrewlimaza/9c24a37d32402989213033467e058b31

    I recommend reaching out to Bold Theme support for available hooks in the footer to remove the content restrictions.

    Please let me know if you have any further questions.

    Thread Starter swissspaceboy

    (@swissspaceboy)

    Thanks Andrew for the reply.

    I’ll check that filter for the footer.

    On your side, please see how you can make your code more compatible with other themes and plugins. I have other plugins re-rewriting “the content”, and there is no double display in the header or footer. So they got this working…

    I report back here once I tried the filter out.

    Didier.

    Thread Starter swissspaceboy

    (@swissspaceboy)

    Hi Andrew,

    Bad news. There are no hooks in the footer of Bold Themes themes. I can see for Avada that they have that, so with your code snippet, we can unregister your filter. Tricky solution but it could work.

    Do you have something else to propose to me to get this working, so that my footer is not overwritten by your code? This is really a showstopper as I have 3-4 themes from the same (very good) company of Bold Themes. This would make this plugin unusable due to a simple incompatibility problem.

    Thanks in advance.

    Didier.

    Thread Starter swissspaceboy

    (@swissspaceboy)

    Gentle reminder. Thanks. Didier.

    Plugin Author Andrew Lima

    (@andrewza)

    Thank you for the feedback, unfortunately this issue will need to be resolved by your hosting support.

    We try to integrate with as many products and themes as we can however. For us to successfully integrate with your theme a relevant hook would need to be added in.

    Thank you for understanding.

    Thread Starter swissspaceboy

    (@swissspaceboy)

    Thanks for your reply. To close.

    Didier.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post content is repeated twice (theme incompatibility)’ is closed to new replies.