Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #897970

    Hi,
    I’ve installed a child theme based on Enfold theme. It works but not entirely. I’ve encounter 2 problems :
    1. : The “Enfold” still appears lot fo times in the source code as shown below and my child theme only once
    /wp-content/themes/enfold/js/aviapopup/magnific-popup.css?ver=1′
    /wp-content/themes/enfold/style.css?ver=4.8.4′
    /wp-content/themes/enfold/css/base.css?ver=2
    /wp-content/themes/[childtheme]/style.css?ver=2

    2. I’ve installed Woocemmerce plugin.
    When I try to make some changes in the product presentation (description.php) , it works when I do the changes in the Enfold theme (themes/enfold/woocommerce/single-product/tabs) but not in the CHild theme (themes/[childtheme]/woocommerce/single-product)

    Can you help me ?
    Thakns for your reponse !
    Pierre

    #897984

    A child-theme uses all the properties of the parent-theme. It inherits the parent theme. It just adds properties, or you can add your own templates. A header.php in the child-theme folder f.e. would completely replace the header.php of the parent theme.
    The functions.php of the child-theme is the big exception and central starting point for changes in the parent topic. Only with special functions it can replace functions of the parent-theme functions.php. The normal case is the addition of functions.
    So on that case everything is o.k. with your installation. The child-theme uses all the files of your parent-theme.

    For answering to your woocommerce problem – i had to see the installation details. So it is better you wait here for mod to come and have a look to your installation. So please write your login data into the private content. i guess it is only a misunderstanding the role of the child-theme and how it works in combination with the parent-theme

    #897992

    See infos in Private zone
    Thanks for helping !

    #898425

    Hi amesquivivent,

    Credentials did not work for me. Could you please update the credentials.

    You might want to use a filter to make changes there. Here is where you can find the appropriate one.
    https://docs.woocommerce.com/wc-apidocs/hook-docs.html

    Best regards,
    Victoria

    #900743

    Hi Victoria,
    Sorry for the delay of my response. It works !!!
    Looks good !
    Thanks for your help !

    #901204

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #901762

    I’ve got one last question : I wonder why the “enfold” name still appears in the source code of my page instead of the child theme name 1001contes.
    If you look at the source code, there is only 1 line with the child name. The other lines referes to ‘/wp-content/themes/enfold/’ theme !!
    What have I missed ???
    Thanks for your help !

    <link rel=’stylesheet’ id=’parent-style-css’ href=’http://www.1001contes.com/wp-content/themes/enfold/style.css
    <link rel=’stylesheet’ id=’avia-grid-css’ href=’http://www.1001contes.com/wp-content/themes/enfold/css/grid.css
    <link rel=’stylesheet’ id=’avia-base-css’ href=’http://www.1001contes.com/wp-content/themes/enfold/css/base.css
    <link rel=’stylesheet’ id=’avia-layout-css’ href=’http://www.1001contes.com/wp-content/themes/enfold/css/layout.css
    <link rel=’stylesheet’ id=’avia-scs-css’ href=’http://www.1001contes.com/wp-content/themes/enfold/css/shortcodes.css
    <link rel=’stylesheet’ id=’avia-custom-css’ href=’http://www.1001contes.com/wp-content/themes/enfold/css/custom.css
    The only line with child theme name is that one :
    <link rel=’stylesheet’ id=’avia-style-css’ href=’http://www.1001contes.com/wp-content/themes/1001contes/style.css

    #901845

    Hi,
    This is because a child theme uses the parent theme as the base and only overrides the parent theme with the files in it’s folder. In your case, if you placed a copy of those files in your child theme fodder it would show their path.
    If you want to dig deeper, this article may help: How To Rename a Theme
    Or perhaps this plugin: WP Hide & Security Enhancer

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.