WordPress.org

Support

Support » Plugins and Hacks » GC Testimonials » [Resolved] Styling not working on specific pages but does work on main Testimonials page

[Resolved] Styling not working on specific pages but does work on main Testimonials page

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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
    plugins/gc-testimonials/assets/css/gctestimonial.css
    to your theme’s stylesheet.

    That is a nice theme, by the way!

    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.

    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!

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

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Styling not working on specific pages but does work on main Testimonials page’ is closed to new replies.
Skip to toolbar