• 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

Child theme : css doesn't works…

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 › General Discussion › Child theme : css doesn't works…

This topic is: not resolved
  • This topic has 4 replies, 3 voices, and was last updated 6 years, 10 months ago by panatan.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 20, 2018 at 7:03 am #221853
    panatan
    Participant

    Hi guys !

    I'm trying to add a child theme to my web site, using genesis + magazine-pro

    I've done a new folder in themes/
    I've added two files => function.php + style.css => first is empty, and the second use

    /*
    	Theme Name: newtheme
    	Description: Child theme of Genesis, by StudioPress.
    	Author: xxxxxxx
    	Author URI: https://www.mywebsite.fr
    
    	Template: genesis
    *

    When i activate my newtheme, no css is loaded...
    I would like that magazine-pro (css) was loaded and, newtheme (css) override it.
    How could i do that ?
    Best regards and sorry for my poor english...

    July 20, 2018 at 12:01 pm #221856
    Victor Font
    Moderator

    The first file should be named functions.php, not function.php. Functions.php should not be empty, because Genesis won't load. The child theme is loaded from functions.php. Take a look at functions.php from the Genesis Sample theme as an example.

    At the absolute minimum, you have to start the Genesis engine:

    // Starts the engine.
    require_once get_template_directory() . '/lib/init.php';

    Regards,

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

    July 21, 2018 at 11:00 am #221891
    panatan
    Participant

    Thx Victor !

    Nothing works, i don't understand why... I'm using Genesis since few years but working with child theme has always been something special for me :/

    Could it be possible to rename my magazine-pro folder in magazine-pro-child ?
    In that case, files would never been update, but it doesn't matter for me...

    Best regards

    July 22, 2018 at 7:50 am #221909
    Gary Jones
    Member

    At the absolute minimum, you have to start the Genesis engine

    Not true.

    Once a child theme is parsed, WordPress will then automatically parse the parent theme. All the Start the engine line does is to shortcut that process so that Genesis functions are available in the global scope. If you keep calls to Genesis functions inside of callback functions, there's no need to load Genesis early.

    The issue here is that the OP is trying to treat this as a grandchild theme, but isn't pulling in the magazine pro style.css.


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

    August 4, 2018 at 9:12 am #222222
    panatan
    Participant

    ok thanks !

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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

© 2025 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