Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background Image Replaced by Background Color #66

Open
laurenkbperry opened this issue Aug 4, 2016 · 1 comment
Open

Background Image Replaced by Background Color #66

laurenkbperry opened this issue Aug 4, 2016 · 1 comment

Comments

@laurenkbperry
Copy link

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?

@islanddog
Copy link

islanddog commented Aug 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants