WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Karin Pinter
    Member
    Posted 8 months 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):
    http://karinpinter.com/niki-owl
    http://karinpinter.com/life-optimisation
    http://karinpinter.com/creative-orchestration
    http://karinpinter.com/my-optimised-life

    It does, however, work with your styling on this one:
    http://karinpinter.com/praise

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

    Thanks!

    http://wordpress.org/plugins/gc-testimonials/

  2. Chris Dillon
    Member
    Posted 8 months 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
    plugins/gc-testimonials/assets/css/gctestimonial.css
    to your theme's stylesheet.

    That is a nice theme, by the way!

  3. Karin Pinter
    Member
    Posted 8 months 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
    Member
    Posted 8 months 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
    Member
    Posted 5 months ago #

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

  6. Chris Dillon
    Member
    Posted 5 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.