Got an error when activate child theme

  • ice48623

    #2792

    Parse error: syntax error, unexpected ‘}’ in /home/djingcom/domains/d-jing.com/public_html/wp-content/plugins/wp-php-widget/wp-php-widget.php(52) : eval()’d code on line 18

    I have got above error when I’m activated graphene child theme.

    How to fix it, Thanks!

    Josh

    #21955

    Try de-activating your wp-php-widget plugin before you activate your child theme.

    ice48623

    #21956

    I’ll try

    ice48623

    #21957

    Thanks Josh, you help me a lot.

    ice48623

    #21958

    Josh, I have a question

    It’s possible to have function.php in child theme?

    and if it’s possible, in function.php what code it should contain. Like in style.css it have some of header code, how about function.php is should have some of header code or just put the function code that I want?

    Thanks you again.

    Josh

    #21959

    Yes, you can have a functions file in your child theme. It should be named functions.php.

    You don’t need any information in it except for the opening and closing php tags. You can add any custom functions into the file, and they will be added to your themes functions.

    ice48623

    #21960

    Thanks

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

You must be logged in to reply to this topic.