It seems i have some Problem with my Child. On my offline XAMPP Installation, everything works fine, but when i copy my child-theme folder on my webspace, i first got the following error:
Das übergeordnete Theme fehlt. Bitte installiere das übergeordnete Theme „SiteOrigin North“, da du Child-Themes sonst nicht nutzen kannst. (meaning: parent theme is not installed)
i took a look at the forum, found some useful advice (here https://siteorigin.com/thread/child-theme-issue-2/ and here https://siteorigin.com/basics/child-themes/ ) to fix the error message.
Now, when trying live-preview, i just get an empty browser. So there seems still to be something wrong, but i cannot figure it out. here is the code i’m currently using (just changed the URL and stuff for now):
style.css:
/* Theme Name: MyTheme Theme URI: http://MyTheme.de/theme/MyTheme Description: Basierend auf SiteOrigins North Theme, eine Anpassung für die Firma MyTheme Author: AL Author URI: http://MyTheme.de Template: siteorigin-north Text Domain: siteorigin-north Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce */
functions.php:
/** * Enqueue the parent theme stylesheet. */ function siteorigin_north_child_enqueue_parent_style() { wp_enqueue_style( ‘siteorigin-north-parent-style’, get_template_directory_uri() . ‘/style.css’ ); } add_action( 'wp_enqueue_scripts', 'siteorigin_north_child_enqueue_parent_styles' );
i guess i did something very obvious wrong =D
Hi ALEE,
To clarify, did you install SiteOrigin North on your website (the live site, not the XAMPP install)? The child theme requires that the parent theme is also installed, so if it’s not, you’ll end up with an error similar to this.
Hello Alex,
yes i did =D it also seems to work now with this code:
this seems to be needed, else the style.css is ignored =/
and i still got some issues where it actually IS ignored, which is kinda frustrating but no big deal, just a button:hover that just wants to be red instead of blue =D