• Resolved audrey33770

    (@audrey33770)


    Hello,

    When I restrict a page as indicated in your documentation, the restriction message appears 3 or 4 times, even on an empty page. I’m using Elementor. By disabling Elementor, I only get one message. I think your plugin works with Elementor. I can’t figure out what the problem is.

    https://lignedys.com/ce1-maths-solides-1-4-solides/

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @audrey33770,

    If you are using the Page/Post Restriction feature on a page created with Elementor templates, the behavior you are noticing is expected. The User Registration restriction system is designed to work with the default WordPress content area (the_content).

    When Elementor templates are used to build the header, footer, or entire page, the the_content function may be called several times in different sections. Because of this, the restriction message can appear more than once on the same page. Unfortunately, this behavior cannot be changed from our side, since the restriction system is built to manage content output, and we also cannot adjust how Elementor handles template rendering.

    As a workaround, you can hide the duplicate restriction messages and show only one by adding the following CSS to your site:

    Dashboard → Appearance → Customize → Additional CSS

    span.urcr-restrict-msg {
        display: none !important;
    }
    #content span.urcr-restrict-msg {
        display: block !important;
    }
    

    This will make sure that only a single restriction message is shown to users.

    Best Regards!

    Thread Starter audrey33770

    (@audrey33770)

    Thank you, I tried your code, the problem remains the same. I understand the code, so I don’t know why it doesn’t work. I still have the image in 4 times.

    Thank you.

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @audrey33770,

    We tested the code properly and shared the CSS with you. We recently tested it again, and it works fine on our side. However, after checking your site’s source code, we could not find the provided CSS code loading on your site. It seems the code might not have been added correctly, or the changes may be hidden due to caching.

    If your site uses a plugin or server cache, please clear all caches after adding the code. If your site does not have any cache, kindly share a screenshot showing where and how you added the provided code so we can assist you further.

    Best regards,

    Thread Starter audrey33770

    (@audrey33770)

    span.urcr-restrict-msg {
        display: none !important;
    }
    #content span.urcr-restrict-msg {
        display: block !important;
    }
    .menu-image img {
    width: 5px !important;
    height: 10px !important;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-decoration: none!important;
    }
    .entry-meta{
    display: none !important;
    }
    .post-navigation {
    display: none;
    }

    voila le code que j’ai inséré dans la personnalisation du thème

    ça ne fonctionne toujours pas.

    merci

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @audrey33770,

    It appears that the cache is causing the issue. We have rechecked your restricted page, and the provided CSS code seems to be working correctly.

    Best regards!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘restrict content’ is closed to new replies.