Can't get background image to repeat only horizontally

  • normando

    #48398

    There doesn’t seem to be any way to do this using the pre-set “customizing” panel for the background image. Using the buttons on that panel merely repeat the image over and over rather than across the top, where I want it.

    I have managed to find the selector for body.custom background in Firebug and pasted that into my Child Theme, but it doesn’t update the theme.

    I have changed the “version” of my child theme to 2.0.4 but it doesn’t seem to connect.

    Completely at a loss as to how to fix this now that I’ve updated the Graphene Theme.

    Admin

    Syahir Hakim

    #48429

    Copy and paste this code into Additional CSS or child theme’s style.css:

    body.custom-background {
       background-repeat: repeat-x;
    }
    

    normando

    #48502

    Yes, Thanks. Sorry to take so long in replying…

    That worked when I put in the “Additional CSS” panel in the “Edit CSS” link rather than in the “Editor” link which takes me directly to my Child Theme CSS. Why is that? Is my original Child Theme css no longer connected to the new Graphene theme? Not sure why it works in one place but not the other.

    Thanks,

    Admin

    Syahir Hakim

    #48534

    The custom background code is added by WordPress, in a way that supersedes the code in your child theme, which is why the changes didn’t take effect. Adding the code into the Additional CSS option gives it higher priority than even the code added by WordPress.

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.