• 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

Custom.css file issue

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 › Custom.css file issue

This topic is: not resolved

Tagged: custom css

  • This topic has 4 replies, 4 voices, and was last updated 10 years, 7 months ago by manavecplan.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 11, 2016 at 5:26 am #176199
    manavecplan
    Member

    Hey,

    In a local environment, I've added a custom style sheet via the following code in functions.php:

    /* Adding custom CSS file*/
    function enqueue_custom_stylesheet() {
    wp_register_style( ‘custom-css’, get_stylesheet_directory_uri() . ‘/css/custom.css’ );
    wp_enqueue_style( ‘custom-css’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_custom_stylesheet’ );

    However, the code in the file doesn't get picked up at all.

    I've placed the custom stylesheet in a folder called css in the genesis-sample folder.

    I've followed the instructions stated

    What am I doing wrong?

    January 11, 2016 at 7:49 am #176208
    Brad Dalton
    Participant

    Try this http://wpsites.net/wordpress-themes/second-style-sheet-theme/


    Tutorials for StudioPress Themes.

    January 11, 2016 at 8:26 am #176218
    Victor Font
    Moderator

    The code you posted won't work with curly quotes. They need to be straight quotes.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 11, 2016 at 7:42 pm #176269
    coralseait
    Member

    I wonder if we should sticky a post about curly quotes, it comes up often enough that'd probably help people -- esp with the prevalence of copy pasta coding these days.


    Coral Sea IT

    January 13, 2016 at 8:29 am #176373
    manavecplan
    Member

    Feel very, very stupid. Ugh.

    Was the curly quotes issue. Didn't even notice it in Atom...

    Thanks muches Victor!

    And yeah, Coral, I don't think that would hurt at all...

  • 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