Title: Transparency conundrum
Last modified: August 21, 2016

---

# Transparency conundrum

 *  Resolved [chappie](https://wordpress.org/support/users/chappie/)
 * (@chappie)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/)
 * I’m trying to attach an image with a transparent background to each testimomial
   but while the widget “sees” the alpha channel, the post and page – with their
   default gradient background – doesn’t which leaves me with an ugly white background
   against the gradient. I’ve tried both .png and .gif images with the same result.
 * Any idea why I’m seeing this apparent inconsistency?
 * Thanks for any help.
 * [http://wordpress.org/plugins/gc-testimonials/](http://wordpress.org/plugins/gc-testimonials/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  anonymized-13171256
 * (@anonymized-13171256)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359047)
 * Two options:
 * (1) **Remove** the gradient background. In `gctestimonial.css`, find `.testimonial.
   inner` (~ line 13) and delete the lines that start with `background:` resulting
   in this:
 *     ```
       .testimonial .inner {
           border: 1px solid #FFFFFF;
           margin: 0;
           padding: 20px;
       }
       ```
   
 * or (2) **Override** the gradient background. In your theme’s stylesheet, add:
 *     ```
       .testimonial .inner {
         background: none; /* or whatever color or pattern you want */
       }
       ```
   
 * Keep in mind that option (1) will likely be overwritten if/when the developer
   publishes an update, which is why option (2) is the preferred and more common
   approach.
 * By the way, the same is true for the font color & style, and that’s located in`.
   testimonial .content`.
 * I have yet to use a plugin that outputs anything on a page/post without having
   to re-style something. Ideally, the plugin would be a blank slate that would 
   simply inherit the style of the site.
 * If it would help, I’d be happy to write a CSS reset for this that would give 
   you that blank slate.
 *  Thread Starter [chappie](https://wordpress.org/support/users/chappie/)
 * (@chappie)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359236)
 * Many thanks for this, Chris.
 * I would certainly like to try that CSS reset if your offer still holds — not 
   least because I have encountered a styling bug in that when I italicise my testimonials
   all my other sidebar widgets also inherit the italic styling, as does the white
   credits footer at the bottom of every one of my (Customisr) theme pages…except
   my home page which is the only full width/no sidebar page on my site.
 * I was trying to style all testimonials in 12px Trebuchet MS italics – and would
   like to _remove_ the italics of the client name/data fields while retaining the
   bold styling.
 * My theme has a custom CSS facility which lets me write new theme styles and overrides
   into a Child theme so that they won’t get over-written when the theme is updated.
 *  anonymized-13171256
 * (@anonymized-13171256)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359272)
 * Well, the CSS reset idea isn’t panning out. The plugin stylesheet simply oversteps
   its bounds. For example, it styles the [Submit] button on the form instead of
   allowing the theme’s style to be applied 🙁
 * FWIW, I have found that adding
 *     ```
       #testimonials_container .content {
         float: none;
         width: 100%;
       }
       #testimonials_container .inner {
         float: none;
       }
       ```
   
 * fixes many spacing and overlap problems.
 * To address your problem, chappie, I would recommend either:
    (1) keep the existing
   plugin stylesheet and make changes using your custom CSS; or (2) overwrite the
   plugin stylesheet altogether which would give you a blank slate.
 * Pros and cons to both; it really depends on your comfort level. I can help and
   that would best be done outside this forum, [chrisdillon.us@gmail.com](https://wordpress.org/support/topic/transparency-conundrum/chrisdillon.us@gmail.com?output_format=md).
 * Chris
 *  anonymized-13171256
 * (@anonymized-13171256)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359273)
 * And for anyone stumbling on this post, here’s a way to remove the plugin stylesheets
   to ensure that your theme’s style is applied and to give you a blank slate for
   the rest.
 *     ```
       /**
        * Remove GC Testimonials stylesheet(s)
        */
   
       // page or post:
       add_action( 'wp_print_styles', 'deregister_testimonial_style', 100 );
   
       function deregister_testimonial_style() {
         wp_dequeue_style( 'gctstyles' );
         wp_deregister_style( 'gctstyles' );
       }
   
       // widget:
       add_action( 'wp_footer', 'deregister_testimonial_widget_style', 10 ); // priority 10 is important
   
       function deregister_testimonial_widget_style() {
         if ( wp_style_is( 'gctwidgetstyles', 'enqueued' ) ) {
           wp_dequeue_style( 'gctwidgetstyles' );
           wp_deregister_style( 'gctwidgetstyles' );
         }
       }
       ```
   
 *  Thread Starter [chappie](https://wordpress.org/support/users/chappie/)
 * (@chappie)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359275)
 * Many thanks for the CSS gift, Chris – I will try it tomorrow.
 * Your offer of extra-curricular assistance is extremely kind but I hope I can 
   make enough progress not to take you up on it.
 * I’m tempted to have a go with your stylesheet erasure code, (which presumably
   I can simply erase to get back to square one) if it will enable me to create 
   new styles in CSS. I should be capable of discovering the names of the elements
   I need to target. I don’t know which PHP file I need to create or amend though.
 *  anonymized-13171256
 * (@anonymized-13171256)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359276)
 * Right, sorry. That code above would go in your theme’s `functions.php`. Thanks
   for catching that.
 *  Thread Starter [chappie](https://wordpress.org/support/users/chappie/)
 * (@chappie)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359280)
 * Will it work if I simply add it to my existing Child functions.php file? I guess
   I could try it and find out…
 *  anonymized-13171256
 * (@anonymized-13171256)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359281)
 * Yes.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Transparency conundrum’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gc-testimonials.svg)
 * [GC Testimonials](https://wordpress.org/plugins/gc-testimonials/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gc-testimonials/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gc-testimonials/)
 * [Active Topics](https://wordpress.org/support/plugin/gc-testimonials/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gc-testimonials/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gc-testimonials/reviews/)

## Tags

 * [chappie](https://wordpress.org/support/topic-tag/chappie/)
 * [Transparency](https://wordpress.org/support/topic-tag/transparency/)

 * 8 replies
 * 2 participants
 * Last reply from: anonymized-13171256
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/transparency-conundrum/#post-4359281)
 * Status: resolved