WordPress.org

Ready to get started?Download WordPress

Forums

Pilot Fish
[resolved] Header image scrolls (4 posts)

  1. kosenko_oleksii
    Member
    Posted 1 year ago #

    Hello, thank you very much for your theme. I like it a lot! However, I've got some problems. My header image is not stable, it scrolls when I scroll the web-page. Can you advise me something? Thank you!

    My web-page is: http://easy-math.ru/

  2. Kyle Numann
    Member
    Posted 1 year ago #

    In your wordpress dashboard, go to Appearance -> Editor. From the list of files on the right, select your stylesheet (style.css)

    Inside that file, you will need to change this code on line 897

    Change from this

    #featured {
        background-attachment: fixed;
        background-image: url("images/home_banner.jpg");
        background-position: center top;
        background-repeat: no-repeat;
        display: block;
        height: 380px;
        text-align: center;
    }

    To this

    #featured {
        background-attachment: scroll;
        background-image: url("images/home_banner.jpg");
        background-position: center top;
        background-repeat: no-repeat;
        display: block;
        height: 380px;
        text-align: center;
    }

    You can see, the only edit is changing the background-attachment: from 'fixed' to 'scroll'.
    This will alter the position of your background a bit, so you may have to edit & re-upload the background image.

  3. kosenko_oleksii
    Member
    Posted 1 year ago #

    Thank you, Kyle, but it didn't work out. :(

  4. Daniel Zhao
    Member
    Theme Author

    Posted 1 year ago #

    you can just remove the background-attachment: fixed; without adding anything :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.