wpds
wpds copied to clipboard
Background Image Replaced by Background Color
Even if I have uploaded a background image for a post, the background color is displayed (blocking the background image). I'm not great at writing PHP, does anyone have a fix for this?
Go to your theme folder and change the following:
stylesheets/app.css
/* line 158, ../../../../../../../../../Library/Ruby/Gems/2.0.0/gems/zurb-foundation-4.3.2/scss/foundation/components/_grid.scss */
.large-12 {
position: relative;
width: 100%;
background-image: url("http://BackgroundURL Goes Here") !important;
}
This should put your custom background as priority and remove the default background. If it still doesn't work use wp-content\plugins\post-details.php and change a color from this:
<p>
<label for="background-color" class="wpds-row-title"><?php _e( 'Background Color', 'wpds-textdomain' )?></label>
<select name="background-color" id="background-color">
<option value="ff823c" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], 'ff823c' ); ?>><?php _e( 'Orange', 'wpds-textdomain' )?></option>';
<option value="e13938" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], 'e12938' ); ?>><?php _e( 'Red', 'wpds-textdomain' )?></option>';
<option value="f4cd3c" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], 'f4cd3c' ); ?>><?php _e( 'Yellow', 'wpds-textdomain' )?></option>';
<option value="00ccff" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], '00ccff' ); ?>><?php _e( 'Blue', 'wpds-textdomain' )?></option>';
<option value="8dc73f" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], '8dc73f' ); ?>><?php _e( 'Green', 'wpds-textdomain' )?></option>';
<option value="898989" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], '898989' ); ?>><?php _e( 'Dark Gray', 'wpds-textdomain' )?></option>';
<option value="04151A" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], '04151A' ); ?>><?php _e( 'Black Pearl', 'wpds-textdomain' )?></option>';
<option value="ebebeb" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], 'ebebeb' ); ?>><?php _e( 'Light Gray', 'wpds-textdomain' )?></option>';
<option value="FFFFFF" <?php if ( isset ( $wpds_stored_meta['background-color'] ) ) selected( $wpds_stored_meta['background-color'][0], 'FFFFFF' ); ?>><?php _e( 'White', 'wpds-textdomain' )?></option>';
</select>
</p>
to transparent over the default color and use it as your default. Basically if you use White #FFFFFF change it to transparent and select White as your background color on the post.