Archived topic
How to make generate_after_right_sidebar_content hook element sticky
8 replies · Started by surendra1506 on October 2, 2022
Hi team,
I want to make the generate_after_right_sidebar_content hook element on the right sidebar of my site classmate4u.com
sticky.
Please help me.
Hi Surendra,
It seems that one of your plugins or custom code is adding a height rule to the height: auto inside-right-sidebar. See: https://share.getcloudapp.com/L1u9WZ6E
You'll need to figure out what's adding this rule, and disable it so we can make the Element sticky.
Hi Fernando,
I disabled the auto height rule from the WP rocket setting and checked my Additional CSS.
I think we can proceed further.
It's still there from my end.
You can check this by Right clicking > inspect, then search for inside_right_sidebar.
Hi Fernando,
I had cross-checked the same. I had checked with inspect element also.
The auto height rule is no more there. It has been removed.
Please confirm.
What you can see
It's still there from my end. I've also cleared my Browser's cache and used Incognito to test. Can you try temporarily disabling all non-GP plugins?
It would be good to take a backup of your site before doing this.
Hi Fernando,
Please find attached a screenshot https://postimg.cc/9DdrGWSM where you can see the height attribute is no more there.
It has been disabled.
Hi any update on this?
The height attribute is still there, I think it might be added by the ads plugin/script.
https://www.screencast.com/t/tqD6mlKy
And which widget are you wanting to be sticky?
If it's the last widget in the sidebar, it can not be sticky as the initial position of the widget is lower than the entire content area.