Archived topic
Restrict Content Pro conflicts
10 replies · Started by Philippe on November 10, 2022
Hi,
I saw that Restrict Content Pro plugin is often recommended by Generatepress support (or at least mentioned). However, I could not find answers to my issues with it.
Basically, RCP prevents other plugins from working at all, such as Sticky Sidebar and Pop-up Maker. But it also prevents sticky navigation in Generatepress from working too.
Not having a fixed sidebar is an absolute no-no for me.
Thanks for your help,
Hi Philippe,
It seems a issue of the RCP plugin, it sounds like it's blocking JS from loading.
Have you reached out to their support? I think they might have some insights.
Hi Ying,
I did contact them. I'll let you know how it goes.
Hi,
For now, I just deactivated RCP and would like to try setting a fixed right-hand column with css.
Can you help out with this?
Thank you,
Philippe
Hi there,
can you share a link to a page where i can see the sidebar ?
Ok, i see you already have this CSS on your site:
@media (min-width: 769px) {
.inside-right-sidebar, .inside-left-sidebar {
position: -webkit-sticky;
position: sticky;
top: 60px
}
}
That will work, if you change the Customizer > General > Structure to Flexbox.
IMPORTANT, that change is a one way change, it cannot be reversed. So if you select that option you should check for any issues before publishing the customizer changes. Or make the change on a staging server.
If you don't want to make that change then update the CSS to this:
@media (min-width: 769px) {
#content {
display: flex;
}
.inside-right-sidebar, .inside-left-sidebar {
position: -webkit-sticky;
position: sticky;
top: 60px
}
}
I did not change to Flexbox (what is the advantage of doing so, anyway?). The other script works, which makes me happy because RCP seems to take a lot of software real estate. Now, I will have to figure out how to make the Pop-up Maker work again.
Thank you!
(what is the advantage of doing so, anyway?)
It was a big change we made in GP 3.0.
You can read more on that here:
https://generatepress.com/generatepress-3-0-a-new-era/
TLDR: It removed a lot of Grid specific CSS that GP required when using the old Floats structure as well as improved the way CSS is generated. Ultimately leading to quite a big performance improvement in terms of the number of resources GP loads and the size of those resources.
Now that you tell me, I am going to change to Flexbox.
It seems I miss registering for the Generatepress newsletter, if there is one.
You're welcome!