• 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

Updating custom CSS via IDE

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 › Updating custom CSS via IDE

This topic is: resolved

Tagged: atom, css, enqueue stylesheet, ide

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 11 months ago by Saqib Ali.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 20, 2017 at 5:09 am #206732
    Saqib Ali
    Member

    I find it frustrating making stylistic changes to my child theme using the Custom CSS manager plugin, it's very clunky and slow.

    I'd like to directly link a custom CSS file to my IDE, Atom, in this instance.

    From my understanding, I need to enqueue a new style sheet, which I've created a file in the root folder of my child theme, Wellness Pro /custom-styles.css

    I've also created a new line within the functions.php file wp_enqueue_style( 'custom-styles', get_template_directory_uri() . '/css/custom-styles.css', array(),false,'1.1', 'all');

    // Child theme (do not remove).
    define( 'CHILD_THEME_NAME', 'Wellness Pro' );
    define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/wellness-pro/' );
    define( 'CHILD_THEME_VERSION', '1.1.3' );
    
    // Enqueue Scripts and Styles.
    add_action( 'wp_enqueue_scripts', 'wellness_enqueue_scripts_styles' );
    function wellness_enqueue_scripts_styles() {
    
    	wp_enqueue_style( 'wellness-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,700|Arbutus+Slab', array(), CHILD_THEME_VERSION );
    	wp_enqueue_style( 'wellness-pro', get_template_directory_uri() . '/custom.css', array(),false,'1.0.0', 'all');
    	wp_enqueue_style( 'dashicons' );
    
    	$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
    	wp_enqueue_script( 'wellness-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menus' . $suffix . '.js', array( 'jquery' ), CHILD_THEME_VERSION, true );
    	wp_localize_script(
    		'wellness-responsive-menu',
    		'genesis_responsive_menu',
    		wellness_responsive_menu_settings()
    	);
    }

    But it doesn't seem to be doing the trick, I must be doing something wrong or am I way off track and there's a simpler solution...

    http://development site
    May 20, 2017 at 5:27 am #206733
    Brad Dalton
    Participant

    This is for parent themes only

    get_template_directory_uri()

    For child themes use:

    get_stylesheet_directory_uri()

    Or:

    get_theme_file_uri()

    Tutorials for StudioPress Themes.

    May 20, 2017 at 7:34 am #206747
    Saqib Ali
    Member

    Ah, that's it @braddalton, thank you very much!

    May 20, 2017 at 11:39 am #206765
    Saqib Ali
    Member

    Actually one more thing, now that the file has been enqueued correctly, how would you go about making this custom stylesheet more prominent because some the style.css stylesheet is not being overridden by some changes I've made in the custom.css stylesheet.

    May 21, 2017 at 7:43 am #206794
    Saqib Ali
    Member
    This reply has been marked as private.
  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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