- This topic has 4 replies, 3 voices, and was last updated 4 years, 6 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
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.
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...
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';
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...
At the absolute minimum, you have to start the Genesis engine
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.
ok thanks !
© 2023 WPEngine, Inc.