[Support request] Have a block that does not move

Home Forums Support Have a block that does not move

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1052679
    laurent1005

    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

    #1052736
    David
    Staff
    Customer Support

    Hi there,

    when you say fixed block – what happens to it when you scroll down to view the other articles?

    #1052768
    laurent1005

    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

    #1052780
    David
    Staff
    Customer Support

    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;
    }
    #1052794
    laurent1005

    So you mean that it makes it possible to add html code in addition to the block of advertising?

    #1052804
    David
    Staff
    Customer Support
    #1052806
    laurent1005

    Ok ok, david,

    <b>merci</b> (thank you) in French

    at pleasure

    #1052811
    David
    Staff
    Customer Support
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.