problem with sticky

Posted in: Newspaper
Post count: 32

Hi, I have a problem with sticky. See I have set a column to sticky, in it I have custom ad code (adsense) and a list of articles. Unfortunately, it is not sticky on the page, only when scrolling the center of the page falls into this column. How to solve this to keep the entire length of this column on the left side? Test page: dev2024.babskiporadnik.pl

sticky

Post count: 27744

Hello,

Please delete the height in column -> https://i.imgur.com/2MS7ys7.png

Thank you!

Post count: 32

I removed it. The problem remains. The problem is when I have added the code in the ad box, in the custom code. When I choose an image instead of the code and add the image as an ad – the problem does not occur and the column is sticky.
https://ibb.co/d0MpcRt
https://ibb.co/Zh3WmfS

Post count: 27744

Hello,

Please add this code to the theme panel -> custom code -> custom javascript https://pastebin.com/YN1NGu4p

Thank you!

Post count: 32

It’s ok. Thank you

Post count: 32

Hello, unfortunately I noticed that this code does not work in private mode in Safari

Post count: 27744

Hello,

Safari’s private browsing mode has stricter JavaScript and CSS handling. In some cases, certain JavaScript functionality may not work due to restrictions like blocking cookies, local storage, or stricter handling of certain DOM manipulations.
Confirm that jQuery is properly loaded and accessible in private mode. Use the browser’s developer tools (Cmd + Option + I) to check for errors in the console.
Also, you can try to use this code https://pastebin.com/6i57h95e

Thank you!

Post count: 32

I have to come back to this topic. I noticed that this code doesn’t work the first time I visit the page, only after refreshing it works correctly. Do you know how to fix this?

Post count: 32

This applies to all browsers. This is not caused by js/css caching, because I tested with the cache plugin disabled.

  • This reply was modified 1 year by przybylg.
Post count: 27744

Hello,

Please try to use this code https://pastebin.com/eVdnP7eh The issue you’re facing is likely because the script executes before the .td-is-sticky elements are fully rendered on the initial page load.

Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.