Title: Scrollarama CSS Hack
Last modified: August 19, 2016

---

# Scrollarama CSS Hack

 *  [Flash Buddy](https://wordpress.org/support/users/flashbuddy/)
 * (@flashbuddy)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/scrollarama-css-hack/)
 * I’m using Maltpress’ Scrollarama at [http://shanechipp.com](http://shanechipp.com).
   Love it! Ran into a glitch where a user created a post and assigned it to the
   category that Scrollarama draws images/text from, yet did not set a featured 
   image! I ended up with a blank white rectangel; ugly!
 * **Solution:** Added to my style.css
 *     ```
       .pr_side_slider{
       	background-image: url('path-to-your-image.jpg');
       	background-repeat: no-repeat;
       }
       ```
   
 * Now when a post in the Scrollarama category doesn’t have an image, the slider
   will display what I set as default. Easy peasy solution.
 * On another note, adding a featured image to said post did not appear in scrollarama?!
   I don’t know why, I tried a couple times and gave up, opting for my hack insted.

Viewing 1 replies (of 1 total)

 *  [maltpress](https://wordpress.org/support/users/maltpress/)
 * (@maltpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/scrollarama-css-hack/#post-2037523)
 * Yep; the default is a blank box, and this hack is perfect for setting your own
   default background image.
 * Background images are generated EITHER from a custom field called “slider” which
   takes an image url, or if that isn’t present, from the first **attachment** on
   a post. If this attachment is a media file rather than an image, it won’t work.
 * Using the “slider” custom field is _always_ the best way to add your image as
   it’s far easier to control without affecting the image on the post.

Viewing 1 replies (of 1 total)

The topic ‘Scrollarama CSS Hack’ is closed to new replies.

## Tags

 * [featured image](https://wordpress.org/support/topic-tag/featured-image/)
 * [scroller](https://wordpress.org/support/topic-tag/scroller/)

 * 1 reply
 * 2 participants
 * Last reply from: [maltpress](https://wordpress.org/support/users/maltpress/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/scrollarama-css-hack/#post-2037523)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
