• Resolved eerikk

    (@eerikk)


    Hello there,

    Our sites is using SG Optimizer with great results apart for an issue with CSS Combine and a booking plugin we use (Amelia Booking).

    As you can see the plugin loads but it is unusable. I tried excluding enqueued css files but the plugin is not listed and I’ve been told by the plugin support that combining CSS files prevents Amelia’s style from being loaded.

    I was wondering if it is possible to simply exclude a page from the CSS combination or if there are any other options to keep ‘combine CSS’ on and allow the plugin to work.

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @eerikk

    This is an issue with amelia books script, not the CSS Combination.

    Please use the following snippet, to exclude the amelia script from js modification and defer render blocking functionalities:

    
    add_filter( 'sgo_js_minify_exclude', 'js_exclude_amelia_scrit' );
    add_filter( 'sgo_js_async_exclude', 'js_exclude_amelia_scrit' );
    function js_exclude_amelia_scrit( $exclude_list ) {
        $exclude_list[] = 'amelia_booking_scripts';
    
        return $exclude_list;
    }
    

    Regards,
    Stanimir

    Thread Starter eerikk

    (@eerikk)

    Hey Stanimir.

    Thank you for getting back to me. I added the code through shortcodes using: https://en-gb.www.ads-software.com/plugins/insert-html-snippet/

    …no luck tho. Am I doing something wrong?

    Best,
    Erik

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @eerikk

    The code snippet you have created should be used to show sample code in the page/post content and it’s never executed.

    I have added the right exclude in your wp-config.php file.

    Please check if everything is ok.

    Regards,
    Stanimir

    Thread Starter eerikk

    (@eerikk)

    Hey @sstoqnov

    No luck, if I leave Combine CSS on it still break things up.

    Thank you again for your help!

    Best,
    Erik

    Thread Starter eerikk

    (@eerikk)

    Hey @sstoqnov,

    Just a small ping, in case there is anything else I can do. :/

    Best,
    Erik

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Combine CSS issues with Amelia Booking’ is closed to new replies.