WordPress.org

Forums

Making a sidebar fixed width on scroll? (3 posts)

  1. Real Media
    Member
    Posted 2 years ago #

    Hi,

    I'm currently using a child theme on the Codium theme. I want to make the sidebar move down as you scroll down the site, but only once it reaches the top of the window. I'm assuming this would need to be done using a javascript. Has anyone done something similar before that can point me in the right direction?

    Here's my site: http://www.zippromo.co.uk

    Thanks.

  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    This tutorial might be of help
    http://css-tricks.com/scrollfollow-sidebar/

    If not, try Googling 'Fixed sidebar JavaScript' or 'Fixed sidebar jQuery'.

  3. Real Media
    Member
    Posted 2 years ago #

    Looks good, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic