milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
918 stars 196 forks source link

Custom background image styling #245

Open sanderdewijs opened 10 years ago

sanderdewijs commented 10 years ago

Maybe I'm just overlooking something, but I cannot find the scss part where the style attributes for the custom background (.body custom-background) are defined.

When I inspect the code with Chrome inspector the default styles are

background-image: url('media/background.jpg'); background-repeat: repeat; background-position: top left; background-attachment: scroll;

milohuang commented 10 years ago

Custom background was added vis javascript by WordPress.

NRG-R9T commented 10 years ago

to style the backgroud by SCSS you can remove the lines of "// Add custom background support" in your functions.php, so that you can't customize that in Wordpress' Admin any more. This will let style.scss and the rest of pre-styled foundation magic to unveil it's background styles.

sanderdewijs commented 10 years ago

That's what I was looking for, thanks!

NRG-R9T commented 10 years ago

that thing drove me crazy until I found it. and the worst part, it's one of the first, if not THE first thing to begin with styling. I'd suggest to remove it from reverie.

sanderdewijs commented 10 years ago

Drove me crazy too. But I'm glad I'm not alone :)