
-
AuthorPosts
-
June 3, 2025 at 10:41 am #1485014June 3, 2025 at 2:00 pm #1485027
you are talking about the news sites?
but if there are additonal columns below – what should happen?
have a look to one of your news pages or the blog page itself:
.responsive body#top.blog, .responsive body#top.wp-singular { overflow-x: visible !important; } .responsive body#top.blog #wrap_all , #top.wp-singular #wrap_all{ overflow: visible !important; } @media only screen and (min-width: 767px){ .responsive body#top.blog .sidebar_right .container, #top.wp-singular .sidebar_right .container{ display: flex; } .responsive body#top.blog .sidebar , #top.wp-singular .sidebar{ position: -webkit-sticky !important; position: sticky !important; top: 180px; align-self: flex-start; flex: 0 1 30% } }
but that does not work with following sections under the sticky container.
June 3, 2025 at 2:04 pm #1485028this could be a nice usage – but the stickyness only belongs to the direct parent container.
https://webers-testseite.de/sticky-elements/
Some explanations are shown here:
https://webers-testseite.de/sticky-sidebar/June 3, 2025 at 2:47 pm #1485029Does not work :-(
June 3, 2025 at 2:55 pm #1485030i do not see my css code in your page!
have you read my post? i told you that it will not work if there are elements below.
Sticky elements do only hold there place inside the direct parent container. so there must be a column with huge content and the column besides with less height. This could be a sticky element then.Insert my code above and look to your blog page: https://institutionofelectronics.ac.uk/news/
or more impressive then : https://institutionofelectronics.ac.uk/2025/05/30/designing-power-supplies-for-industrial-functional-safety-part-1/
or did you want something other than a sticky element. e.g. a fixed element, possibly even a draggable element?June 7, 2025 at 1:22 pm #1485173Hi,
For your /making-a-remote-control/ page I see that you are not using a sidebar, it would be better if you follow Guenni007’s instructions as you will need a parent container. But you can try this css:@media only screen and (min-width: 1905px) { .responsive #top #wrap_all .av-d0kp1-a2d2e6eb6b73ac933b7b21ac10cbf36f { position: fixed; width: 435px; right: 19%; top: 57%; } .responsive #top #header.header-scrolled ~ #main .av-d0kp1-a2d2e6eb6b73ac933b7b21ac10cbf36f { position: fixed; width: 435px; right: 19%; top: 18%; } }
This will make your author box fixed (sticky) under your header after scrolling, it would be better if your column had a custom class name, right now it is: .av-d0kp1-a2d2e6eb6b73ac933b7b21ac10cbf36f
I also note that your author box is quite tall on my desktop, you may want to make it shorter so it will fit in smaller screens.
For this the css only works after 1905px so the whole box is shown, you will not be able to scroll in the box to see all of the content.
Another option would be to use the WP Sticky Anything plugin.Best regards,
MikeJune 7, 2025 at 4:10 pm #1485174ok now you got 2columns besides each other.
if you follow my link for the instructions – you see that the direct parent had to be the flex container.just for you to test ( better would be to use custom classes to be more specific.
.responsive body#top.blog, .responsive body#top.wp-singular { overflow-x: visible !important; } .responsive body#top.blog #wrap_all , #top.wp-singular #wrap_all{ overflow: visible !important; } @media only screen and (min-width: 767px){ #after_section_1 .av-column-wrapper-individual { display: flex; } #after_section_1 .av-column-wrapper-individual .flex_column:nth-child(2){ height: unset !important; position: -webkit-sticky !important; position: sticky !important; top: 180px; align-self: flex-start; flex: 0 1 40% } }
June 7, 2025 at 4:52 pm #1485176Hi,
This works good Guenni007, thanks for sharing, hopefully whdsolutions will agree.Best regards,
MikeJune 7, 2025 at 6:22 pm #1485180in most cases these columns will be inside a color-section. Inside that section the one that should scroll has to be with huge content. the other one with less.
Do not use the equal height option on the coluns!i would give a custom class to that section! f.e. : sticky-parent (this is not the direct parent of those columns. But we can address now better – and use it for that case generally.
The column that should stick got the custom class: sticky-elementthen we have:
(we can have the overflow setting inside the media query too – it only needs to work there)
NB: the media query min-width depends on your setting where the columns should go to 100% width – if it is 989px then change that value@media only screen and (min-width: 767px) { .responsive #top { overflow-x: visible !important; } .responsive #top #wrap_all { overflow: visible !important; } #top .sticky-parent .entry-content-wrapper { display: flex; } #top .sticky-element { height: unset !important; width: unset !important; position: -webkit-sticky !important; position: sticky !important; top: 80px; align-self: flex-start; min-width: 40%; } }
again – see: https://webers-testseite.de/sticky-elements/
June 7, 2025 at 6:34 pm #1485183 -
AuthorPosts
- You must be logged in to reply to this topic.