Logo bug with child theme

  • Author
    Posts
  • #76600

    Hello,

    i started working with a client on Tempera theme.
    She use it since many years

    i’ve created a child them with “child theme generator” to keep all the previous settings active.

    Everything works well, except that logo change place on web view ( from right to left, overriding site title ), and on mobile view it takes all the place on the header.

    you can see an exemple on the site linked to this post.

    For info, here is my functions.php generated for child theme :

    // 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( 'child_theme_configurator_css' ) ):
        function child_theme_configurator_css() {
            wp_enqueue_style( 'chld_thm_cfg_child', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( 'tempera-fonts','tempera-style' ) );
        }
    endif;
    add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 10 );

    Thanks in advance for your help

    Website: www.soutien-psy-en-ligne.fr

Viewing 1 post (of 1 total)

The topic ‘Logo bug with child theme’ is closed to new replies.