• hello dear wordpress experts, good day

    i am pretty new to wp

    run wp 4.1

    with theme 2014

    want to create a child theme – according this manual http://codex.wordpress.org/Child_Themes

    child theme consists of at least one directory (the child theme directory)
    and two files (style.css and functions.php), which you will need to create:

    The child theme directory
    style.css
    functions.php

    what needs to be added to the functions.php ?

    what do i need to add to the functions.php ?

    any and all help will be greatly appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • That link you posted has the exact code you need to put in the functions.php file – this:

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }

    Read the article too :)!

    Thread Starter say_hello

    (@say_hello)

    good day dear WPyogi

    many thanks – i will read the article more thouroguly

    again thanks

    geetings

    btw – we have to close the file with the php-tag –
    dont we!?

    btw – we have to close the file with the php-tag –
    dont we!?

    I had to do some digging around on that – as I’ve seen it discussed before, but here’s the current best practice:

    https://make.wordpress.org/core/handbook/coding-standards/php/#remove-trailing-spaces

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘what to add to functions.php in child theme?’ is closed to new replies.