• I want to set my motif site background-position to be fixed bottom center because I have a gradient from white to colour but the themes customizer only allows for horizontal choices and defaults to top. I’ve searched through the theme files and the css styling for the custom background isn’t in a style sheet at all but pulled into the index from somewhere.

    Can anyone help me either find this setting or show me how to change it so that I can fix the background position to bottom instead?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Could you provide a link to your site running Motif, as well as a link to the image you want to use as your background image so we can take a look?

    Thread Starter lionfishmedia

    (@lionfishmedia)

    Thanks, the site is in dev here : https://79.170.40.40/bddf.org.uk/
    The background image for the whole site is set to 1024px high horizontal repeat in the customiser but it doesn’t allow for fixing the background to the bottom of the screen and I can’t find it in any of the css or other files. So on a large screen (this site is for local disability support so many users will be using large format screens – resolutons over 1024) the background sits above the fold and looks silly.
    Thanks

    Moderator Kathryn Presner

    (@zoonini)

    Thanks for the link.

    Try adding this to your custom CSS:

    body.custom-background {
      background-position: bottom;
    }

    Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated to the latest version.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    As alternatives, you could either install a standalone custom CSS plugin, or create a child theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Background set to fix to bottom?’ is closed to new replies.