Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: formating #64837

    Uwe Matt
    Participant

    Just to re-cap and avoid missunderstanding 🙂

    The code of my functions.php which I use to call my style.css in the child theme is:

    <?php
    	function child_theme_styles() {
    	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    	wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));
    
    	}
    	add_action( 'wp_enqueue_scripts', 'child_theme_styles' );

    This functions.php code can’t be completly wrong because other css changes which I made in my style.css of the child are applied to the website and work.

    But – for whatever reason it does not work with your code to change the top-bar when it is the style.css of the child.

    The only thing – which I can think of that I have to modify the include function above – but how?

    in reply to: formating #64836

    Uwe Matt
    Participant

    no it dont work ! 😉 I posted my functions.php code above …maybe I have done something wrong but I can’t get it to work in a child theme any I am lost.

    in reply to: formating #64833

    Uwe Matt
    Participant

    misspelling – it is of course the functionS.php 😉

    the other css code which is in there works fine – just changing the burger menu from your code earlier doesnt work and I have no clue why.

    in reply to: formating #64832

    Uwe Matt
    Participant

    I can’t get it to work ;(

    Here is the code of my function.php – can you check if there is something wrong?

    
    <?php
    function child_theme_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));
    }
    add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
    in reply to: formating #64789

    Uwe Matt
    Participant

    Hello

    yes thanks – it works .. BUT only when I add it as additonal CSS.

    It does not work when I paste the code into my style.css at the Child-theme ;(

    Even with a brand new style.css of the child theme it has no effect ;(

    Hope you can help me here as well.

    Thanks
    Uwe

    in reply to: formating #64731

    Uwe Matt
    Participant

    Hello

    yes that is right and works fine – but I mean the TOP BAR – the small gray one above the main menu.

    I want switch that to a burger menu only when the resolution is below 800 – not like now at 1024 😉

    Thanks very much for your help

    Kind Regards
    Uwe

    in reply to: Sticky Navigation #64359

    Uwe Matt
    Participant

    It is the option:
    Force JavaScript in <head>?
    of the plugin which cause trouble.

    I would like to keep that if possible – and I still wondering why it works in the free theme?

    in reply to: Sticky Navigation #64358

    Uwe Matt
    Participant

    Hi

    thanks but of course the option for a sticky header is activated.

    I think I found at least the area where the problem is.

    A famous plugin called “autooptimize” https://de.wordpress.org/plugins/autoptimize/

    When I disable this – the header keeps sticky in the paid version. When I enable it – it don’t work anymore. Well in general I would say that might be a problem of the plugin. But why does it work then on the free version of the theme with the plugin active?

Viewing 8 posts - 1 through 8 (of 8 total)