WordPress.org

Support

Support » Themes and Templates » [Resolved] Header image scrolls

[Resolved] Header image scrolls

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thank you, Kyle, but it didn’t work out. 🙁

    Theme Author Daniel Zhao

    @danni1990

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Header image scrolls’ is closed to new replies.