• Resolved mobilewebexpert

    (@mobilewebexpert)


    Hiya,

    The plugin’s stylesheet is badly affecting my UI.

    I have unticked the “Load the theme stylesheet” in wp_admin > Tickets > Settings > Style, but it seems to make no difference as the stylesheet – wp-content/plugins/awesome-support/assets/public/css/public.css?ver=4.3.5 – is still added.

    Is there a quick fix (maybe something I can add to my functions file) to stop the stylesheet from being loaded?

    Thanks,
    James

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Can you try removing the page from the TICKETS->SETTINGS->GENERAL tab (scroll down to where the submit-ticket page is being set). That generally prevents the styles from being loaded on submit-page as well.

    Thanks.

    Plugin Author awesomesupport

    (@awesomesupport)

    Also, maybe you should check to make sure your submit-ticket page isn’t being cached and therefore loading the older version with the stylesheet enabled.

    Thanks.

    Thread Starter mobilewebexpert

    (@mobilewebexpert)

    Thanks for the reply.

    In Tickets > Settings > General > Plugin Pages, I’ve changed the Ticket Submission setting to “None” but it hasn’t made a difference.

    I’m sure it’s not a caching issue.

    If there’s nothing else in the settings to try, can you let me know the code I need to dequeue the stylesheet in my functions file?

    Plugin Author awesomesupport

    (@awesomesupport)

    You’ll find the stylesheet loaded in includes/scripts.php around line 221. We check that setting first to see if it should even be loaded so not sure why you’re seeing it loaded even without the option turned on.

    You’ll see the lines there that look like this:

    wp_register_style( 'wpas-theme-styles', wpas_get_theme_stylesheet_uri(), array(), WPAS_VERSION );
    wp_enqueue_style( 'wpas-theme-styles' );

    You can comment them out and see if the styles are still loaded.

    Thanks.

    Thread Starter mobilewebexpert

    (@mobilewebexpert)

    Thanks. I tried that, but it’s made no difference.

    It’s actually a line just above that…

    wp_enqueue_style( 'wpas-plugin-styles' );

    …that results in the wp-content/plugins/awesome-support/assets/public/css/public.css?ver=4.3.5 script being loaded.

    Commenting that out has stopped the stylesheet from being loaded, but it hasn’t helped the UI. It must be the theme we’re using. :-/

    Thanks again for your support.

    Plugin Author awesomesupport

    (@awesomesupport)

    Ah, you wanted the core plugin styles, not the front-end ticket styles.

    Just out of curiosity – what theme are you using? (Not that we can do much about but I’m always curious what themes are in use).

    Thanks!

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

The topic ‘Style setting not working: “Load the theme stylesheet”’ is closed to new replies.