• IDCreativ

    (@idcreativ)


    Hi,

    Please can somebody help? I have followed all the steps to setting up a child theme and am stuck on there you add the functions.php file to the child theme directory.

    I’m using the below code but then trying to use the child theme via WordPress it keeps displaying the code at the top of the screen both on the back end and front, what am I doing wrong, is the code correct for the functions.php?

    <?php
     
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );

    function enqueue_parent_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri(). ‘/style.css’ );
    }

    Thanks in advance for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter IDCreativ

    (@idcreativ)

    Whenever I use that code and add to the functions.php and upload into child directory the screen just shows white on the screen when visiting homepage or trying to access login screen?

    Driving me bonkers!

    hello there,

    what theme did you use as parent theme?
    can you show me the content file style.css in child theme folder?

    Thread Starter IDCreativ

    (@idcreativ)

    The theme I’m using is Shopisle,

    I have cut and pasted the style.css file text below:

    /*
    Theme Name: shop-isle-child
    Theme URI: http://www.customisedcrafts.com/wp-content/themes/shop-isle\
    Description: shop-isle Child Theme\
    Author: Ian Dance\
    Author URI: http://www.customisedcrafts.com\
    Template: shop-isle
    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: shop-isle-child\
    */

    Thank you!

    Hi, I’m having the same problem. Did you resolve it?
    Cheers 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Setting up Child Theme and having problems with the functions.php’ is closed to new replies.