This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

SiteOrigin North Child Theme – another Problem

8 years ago · Last reply by ALEE 8 years ago

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

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Alex S Staff 8 years, 9 months ago

    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.

  2. ALEE 8 years, 9 months ago

    Hello Alex,

    yes i did =D it also seems to work now with this code:

    function siteorigin_north_child_styles() {
    wp_deregister_style( 'siteorigin-north-style');
    wp_register_style('siteorigin-north-style', get_template_directory_uri(). '/style.css');
    wp_enqueue_style('siteorigin-north-style', get_template_directory_uri(). '/style.css');
    wp_enqueue_style( 'childtheme-style', get_stylesheet_directory_uri().'/style.css', array('siteorigin-north-style') );
    }
    add_action( 'wp_enqueue_scripts', 'siteorigin_north_child_styles' );

    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

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread