Archived topic
Have a block that does not move
7 replies · Started by laurent1005 on November 4, 2019
Is it possible in the summary page below the first article, to have a fixed block allowing to have inside links for parts of the site (ex: forum, frequently asked questions, etc ....)
Thank you in advance for your tracks, helpers, .....
cordially
Hi there,
when you say fixed block - what happens to it when you scroll down to view the other articles?
It follows of course the scrolling like the other articles.
I define it as a fixed block because it always remains below the first article of the summary page.
Cordially
First thing is adding the content below the first article.
I see you have an Advert already in that place? If you used the Ad Inserter Plugin:
https://en-gb.wordpress.org/plugins/ad-inserter/
Then this also allows you to add HTML and other types of content.
You can then use the position: sticky; property to make it stick on scroll.
Example HTML:
<div class="sticky-element">
<!-- my sticky element HTML goes in here -->
</div>
Then this CSS to make it stick:
.sticky-element {
position: sticky;
position: -webkit-sticky;
top: 0;
}
So you mean that it makes it possible to add html code in addition to the block of advertising?
Thats correct.
Ok ok, david,
<b>merci</b> (thank you) in French
at pleasure
De rien :)