- This topic has 13 replies, 2 voices, and was last updated 3 years, 10 months ago by Leo.
-
AuthorPosts
-
May 27, 2020 at 11:49 am #1303952markus
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:May 27, 2020 at 11:57 am #1303964LeoStaffCustomer SupportHi there,
Not quite sure if I understand.
Are you using a child theme?
May 27, 2020 at 12:08 pm #1303977markusYes I am using your child theme as well.
May 27, 2020 at 12:10 pm #1303978markusMay 27, 2020 at 12:29 pm #1303993LeoStaffCustomer SupportDoes 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 */
May 27, 2020 at 2:37 pm #1304117markus/*
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*/
May 27, 2020 at 2:55 pm #1304141LeoStaffCustomer SupportThat’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/May 27, 2020 at 3:29 pm #1304170markus…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)
May 27, 2020 at 3:32 pm #1304172markus<?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' ); */
May 27, 2020 at 3:53 pm #1304180markusI’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.
May 27, 2020 at 4:38 pm #1304219markusPlease 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.
May 27, 2020 at 8:56 pm #1304341LeoStaffCustomer SupportCan you try replacing what you have here:
https://generatepress.com/forums/topic/parent-theme-install-issue/#post-1304117With what I have here?
https://generatepress.com/forums/topic/parent-theme-install-issue/#post-1303993May 28, 2020 at 9:00 am #1305253markusParent 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:May 28, 2020 at 9:06 am #1305269LeoStaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.