Support » Theme: Hestia » Hestia child theme missing logo and loose format

  • Resolved met45

    (@met45)


    Hello!

    I’m new WordPress user.
    Making my website from Hestia theme.
    I try make child theme from Hestia:
    – making hestia-child directory in themes directory
    – copy style.css from parrent directory
    – change in copyed style.css header like this (ofc change Twenty Fifteen for hestia)
    /*
    Theme Name: Twenty Fifteen Child
    Theme URI: http://example.com/twenty-fifteen-child/
    Description: Twenty Fifteen Child Theme
    Author: John Doe
    Author URI: http://example.com
    Template: twentyfifteen
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: twenty-fifteen-child
    */

    – making functions.php file in child directory with this content
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }
    ?>

    Change used theme for child theme but lost my company logo from menubar, lost hover color formating in menu and showing demo content in site.
    I try make child theme with Child Theme Configurator plugin but the problem is same.
    What I doing wrong?

    • This topic was modified 2 years, 11 months ago by met45.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @met45,

    Thank you for contacting us.
    Can you please let us know what’s your website URL so we can actually see the problem?

    Regards,
    Rodica

    Hi Rodica,

    I making the site in localhost (Wampserver).
    You want screenshoot from the parent and child “site” or want the code from which file-s?
    Or it’s simpler if you see the complete site?

    Thank you for your help.

    Regards,
    Met

    Hi @met45,

    It’s ok if you don’t have an on-line site. Can you please give us the code you used in the child theme?

    Thank you,
    Rodica

    Hi Rodica,

    Here is the child style.css code. That’s all, maked with Child Theme Configurator tool.
    The problem is same if I copy from parent folder the style.css file ( full content) in child directory and replace the first ten line like this code.

    Theme Name: Hestia Child
    Theme URI: https://themeisle.com/themes/hestia/
    Template: hestia
    Author: ThemeIsle
    Author URI: https://themeisle.com
    Description: Hestia is a modern WordPress theme for professionals. It fits creative business, small businesses (restaurants, wedding planners, sport/medical shops), startups, corporate businesses, online agencies and firms, portfolios, ecommerce (WooCommerce), and freelancers. It has a multipurpose one-page design, widgetized footer, blog/news page and a clean look, is compatible with: Flat Parallax Slider, Photo Gallery, Travel Map and Elementor Page Builder . The theme is responsive, WPML, Retina ready, SEO friendly, and uses Material Kit for design.
    Tags: blog,custom-logo,portfolio,e-commerce,rtl-language-support,post-formats,grid-layout,one-column,two-columns,custom-background,custom-colors,custom-header,custom-menu,featured-image-header,featured-images,flexible-header,full-width-template,sticky-post,theme-options,threaded-comments,translation-ready
    Version: 1.1.32.1497775206
    Updated: 2017-06-18 08:40:06

    Child functions.php
    <?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_parent_css’ ) ):
    function chld_thm_cfg_parent_css() {
    wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’, array( ‘bootstrap’ ) );
    }
    endif;
    add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’, 10 );

    // END ENQUEUE PARENT ACTION

    Here is the screenshoot from problem, hoover color, missing logo and showing demo content.
    link

    If it’s simpler to you help for me I try move it to public domain (I did not do this anymore):)

    • This reply was modified 2 years, 11 months ago by met45.

    Where is my post?

    Hi Rodica!

    Child files: https://files.fm/u/yg2cydym
    That’s all, maked with Child Theme Configurator tool.

    Parent files: https://files.fm/u/2f56jhh4

    The problem is same if I copy from parent folder the style.css file ( full content) in child directory and replace the first ten line like this code.

    Here is the screenshoot from problem, hoover color, missing logo and showing demo content.
    http://imgur.com/a/YLdsv

    If it’s simpler to you help for me I try move it to public domain (I did not do this anymore):)

    • This reply was modified 2 years, 11 months ago by met45.

    Hi @met45,

    Can you please try to create the child theme using this tutorial http://docs.themeisle.com/article/14-how-to-create-a-child-theme ? I did it and it’s working alright. Also, copying the content from the parent theme’s style.css to the one from the child theme, is not necessary and it may cause problems, because that way, the code would be doubled.
    Please let me know.

    Regards,
    Rodica

    @met45 Can you tried it this way

    function.php

    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
    
    // Get the theme data
    $the_theme = wp_get_theme();
    
    //CSS Files: Parrent style first
    wp_enqueue_style( 'main-style', get_template_directory_uri() . '/style.css', array(), $the_theme->get( 'Version' ) );
    //CSS Files: Child theme css
    wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/css/custom-style.css', array(), $the_theme->get( 'Version' ) );	
    }

    style.css

    /*
     Theme Name:   wwdsrf
     Description:  A Crea8ive hestia child theme
     Author:       Good Muyis
     Author URI:   http://hostdaddy.com.ng
     Template:     hestia
     Version:      0.1.0
     Text Domain:  wwdsrf
    */
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hestia child theme missing logo and loose format’ is closed to new replies.