[Resolved] parent theme install issue?

Home Forums Support parent theme install issue?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1303952
    markus

    My WooCommerce STATUS page shows the following. “-0” is shown in red. Is there an problem with the parent theme? What should I do?

    Theme
    Name: GeneratePress Child
    Version: 2.4.2.1587512630
    Author URL: https://tomusborne.com
    Child theme:
    Parent theme name: generatepressAuthor: Tom Usborne
    Parent theme version: – 0 is available
    Parent theme author URL:
    WooCommerce support:

    #1303964
    Leo
    Staff
    Customer Support

    Hi there,

    Not quite sure if I understand.

    Are you using a child theme?

    #1303977
    markus

    Yes I am using your child theme as well.

    #1303978
    markus
    #1303993
    Leo
    Staff
    Customer Support

    Does the header of your child theme’s style.css file match the default here?

    /*
     Theme Name:   GeneratePress Child
     Theme URI:    https://generatepress.com
     Description:  Default GeneratePress child theme
     Author:       Tom Usborne
     Author URI:   https://tomusborne.com
     Template:     generatepress
     Version:      0.1
    */
    #1304117
    markus

    /*
    Theme Name: GeneratePress Child
    Theme URI: https://generatepress.com
    Template: generatepressAuthor: Tom Usborne
    Author URI: https://tomusborne.com
    Description: GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 15kb (gzipped) to your page size. We take full advantage of the new block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS and is translated into over 25 languages by our amazing community of users. A few of our many features include microdata integration, 9 widget areas, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover) and navigation color presets. Learn more and check out our powerful premium version at https://generatepress.com
    Tags: two-columns,three-columns,one-column,right-sidebar,left-sidebar,footer-widgets,blog,e-commerce,flexible-header,full-width-template,buddypress,custom-header,custom-background,custom-menu,custom-colors,sticky-post,threaded-comments,translation-ready,rtl-language-support,featured-images,theme-options
    Version: 2.4.2.1587512630
    Updated: 2020-04-21 23:43:50

    */

    #1304141
    Leo
    Staff
    Customer Support

    That’s not the default.

    Can you download a fresh child theme here and see if the issue is fixed?
    https://docs.generatepress.com/article/using-child-theme/

    #1304170
    markus

    …and this is the child theme functions.php: obviously I don’t know what I’m doing, so any advice on repairing all this is appreciated.

    I am concerned about losing all my changes made in the Customizer and styles.css and functions.php. Should I still download the child theme? Isn’t the problem with the parent theme anyway? (red text above)

    #1304172
    markus
    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
    
    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:
    
    if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
        function chld_thm_cfg_locale_css( $uri ){
            if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
                $uri = get_template_directory_uri() . '/rtl.css';
            return $uri;
        }
    endif;
    add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
    
    if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
        function chld_thm_cfg_parent_css() {
            wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array(  ) );
        }
    endif;
    add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
             
    if ( !function_exists( 'child_theme_configurator_css' ) ):
        function child_theme_configurator_css() {
            wp_enqueue_style( 'chld_thm_cfg_child', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( 'chld_thm_cfg_parent' ) );
        }
    endif;
    add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 10 );
    
    // END ENQUEUE PARENT ACTION
    
    //https://wpexplorer-themes.com/total/snippets/child-css-after-parent-css/
    //If you want your child theme's style.css file to load after the parent style.css so that your child theme takes priority you can use the following function to enqueue the parent CSS file instead of the default way of loading it.
    //mjs042220
    /*
    function my_load_child_theme_styles() {
    
    	if ( ! defined( 'WPEX_THEME_STYLE_HANDLE' ) ) {
    		wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array(), '1.0' );
    	}
    
    	// First de-register the main stylesheet (which is now your child theme style.css)
    	wp_dequeue_style( WPEX_THEME_STYLE_HANDLE );
    	wp_deregister_style( WPEX_THEME_STYLE_HANDLE );
    
    	// Add the parent style.css with the main style handle
    	wp_enqueue_style( WPEX_THEME_STYLE_HANDLE, get_template_directory_uri() . '/style.css', array(), WPEX_THEME_VERSION );
    
    	// Re-add child CSS with parent as dependency
    	wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/style.css', array( WPEX_THEME_STYLE_HANDLE ), '1.0' );
    
    }
    add_action( 'wp_enqueue_scripts', 'my_load_child_theme_styles' );
    */
    
    
    #1304180
    markus

    I’m not sure the CSS in the Customizer is even having an effect. I want to repair the parent & child themes just to be sure. What is the best practice here, thanks.

    #1304219
    markus

    Please advise specifically what you recommend. Reinstall child theme? Over itself, in file manager, or in WP or ?? I am new and need specific instruction, thank you.

    #1304341
    Leo
    Staff
    Customer Support
    #1305253
    markus

    Parent theme now shows a version ! Looks good to me. I wonder if this will have any effect on the site. Thank you Leo!

    Theme
    Name: GeneratePress Child
    Version: 0.1
    Author URL: https://tomusborne.com
    Child theme:
    Parent theme name: GeneratePress
    Parent theme version: 2.4.2
    Parent theme author URL: https://tomusborne.com
    WooCommerce support:

    #1305269
    Leo
    Staff
    Customer Support
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.