WordPress.org

Ready to get started?Download WordPress

Forums

Background Per Page
Background image doesn't shrink with screen size. (5 posts)

  1. devanijanssen
    Member
    Posted 1 year ago #

    My image is slightly larger than my current window. And when I minimize my window at all, the image does not shrink with it. Is there a way to make the background image shrink in size with the window/fit to the screen?

    http://wordpress.org/extend/plugins/background-per-page/

  2. lok1728
    Member
    Posted 1 year ago #

    There's is not option to set the background image to responsive in the plugin and the css is embedded after all other CSS has been called. I even attempted to make the css background-size: cover !important; but that didn't work, so I ended up hacking the background-per-page.php file with a responsive/auto radio button option.

    I have emailed the developer to see if they wish to commit this addition but for now, you can copy the file I have changed and replace your background-per-page.php file. However, any updates could remove the changes I made, so use at your own risk. ;)

    https://github.com/lok1728/Background-Per-Page-Extended

  3. pedronmarques
    Member
    Posted 1 year ago #

    this is great lok1728!
    thanks!!!

  4. lc235
    Member
    Posted 11 months ago #

    this is brilliant! author should definitely incorporate this in the plugin. Thanks lok1728

  5. Santiago Rocha
    Member
    Posted 7 months ago #

    @lok1728 thanks a lot! you just saved me lots of work! ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic