• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Problems overriding plugin css

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Problems overriding plugin css

This topic is: not resolved

Tagged: plugin css override

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 7 months ago by Askitbasket.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 26, 2013 at 8:05 am #75685
    Askitbasket
    Member

    Hi everyone,

    I'm making my own child theme based on Genesis and I've been having a bit of trouble trying to override some css colours in a plugin that I'm using (Symple Shortcodes).

    I wanted to do this in the most elegant way possible and after doing a bit of research, I tried to enqueue my own style with the plugin as a dependency in the functions.php using this code:

    //* Style changes to Symple Shortcodes Plugin

    wp_enqueue_style(
    'my-symple-styles',
    get_template_directory_uri() . '/my-symple-styles.css',
    array('symple_shortcodes_styles.css')
    );

    ...It didn't work.

    Just out of interest, I also tried to completely dequeue the plugin's style using this code:

    //* Dequeue Symple Shortcodes Plugin style

    function wpa_dequeue_style() {
    wp_dequeue_style( 'plugin-style-handle' );
    }
    add_action( 'wp_enqueue_scripts', 'wpa_dequeue_style', 100 );

    ...but that didn't work either

    I also tried just copying and pasting the relevant code from the plugin's css into my child theme's style.css but the plugin's style seems to get called in first.

    I'm fairly new to all this and so if anyone has any ideas, I'd be incredibly grateful.

    http://c3927181.myzen.co.uk/contact-us/
    November 26, 2013 at 11:09 am #75715
    David Chu
    Participant

    Hi,
    In your first command, the array part won't work, I'm quite sure. That parm is looking for a handle of an already loaded script, not a literal file name. I'd suggest just doing an empty array.

    You also didn't indicate of the enqueue statement is being performed in a function, and if you just have that code without that, you probably will get nothing. If you need help with that, here are examples:

    http://codex.wordpress.org/Function_Reference/wp_enqueue_style

    Good luck,
    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    November 27, 2013 at 2:48 pm #75936
    Askitbasket
    Member

    Thanks Dave,

    Yes, you are right the handle was wrong and I have now changed that. As a result I can now override the plugin css but only by putting the code in my child theme css – it is still ignoring the css file I am trying to direct it to.

    So far I've not had any joy trying to add a function or an action but i will keep trying.

    For your reference, this is where I got the original code from: http://wordpress.stackexchange.com/questions/101037/how-do-i-cleanly-override-a-plugins-css-with-a-child-theme

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble