GC Testimonials
[resolved] Styling not working on specific pages but does work on main Testimonials page (6 posts)

  1. Karin Pinter
    Posted 1 year ago #

    I installed this plugin on my site and am putting links to each category in its corresponding page - the styling is not quite working as per your defaults on these pages (scroll to the bottom of each):

    It does, however, work with your styling on this one:

    Can you share some insights on how the shortcode may be stripping out your styling when I put it into another page?



  2. Chris Dillon
    Posted 1 year ago #

    Hi Karin,

    The testimonial stylesheet is not being loaded on those pages for some reason. Would you post the exact shortcode used? Also, do you know if those are regular pages or custom post types?

    A quick fix would be to manually add the contents of
    to your theme's stylesheet.

    That is a nice theme, by the way!

  3. Karin Pinter
    Posted 1 year ago #

    Hi Chris,

    Thanks for your feedback!
    Those pages are built with the Aqua Page Builder plugin.
    The shortcode for the testimonials is, for example on the Life Optimisation page:
    [full-testimonials category="216"]

    I will test copying the css and hopefully it will integrate well with the rest of my css.

  4. Chris Dillon
    Posted 1 year ago #

    I was able to re-create the problem. Page Builder is not loading GC Testimonials stylesheet because the shortcode is not where GC Testimonials is expecting it to be.

    Instead of manually adding the testimonial CSS to your theme's stylesheet as I recommended before, a better fix might be to simply always load the testimonial stylesheet by adding this to your functions.php:

    function gct_testimonial_styles_aqpb_fix() {
    	wp_enqueue_style('gctstyles', plugins_url( '/gc-testimonials/assets/css/gctestimonial.css' ), false, '1.0', 'all');
    add_action( 'wp_enqueue_scripts', 'gct_testimonial_styles_aqpb_fix');

    That keeps the CSS tidy.

    Or maybe the developer of Page Builder could build a custom block for GC Testimonials that loads the CSS properly. Or maybe I will!

  5. Karin Pinter
    Posted 1 year ago #

    Chris, you're a genius. Thank you for this!

  6. Chris Dillon
    Posted 1 year ago #

    You're welcome Karin. I'm glad we got it working.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GC Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.