• Resolved stixtsr

    (@stixtsr)


    Hi. im trying to use this function for my child theme and i have this error. Pls advice. Thanks.

    The code snippet you are trying to save produced a fatal error on line 56:
    Cannot redeclare generate_comment() (previously declared in /home/site/public_html/stagings/content/themes/generatepress_child/functions.php:6)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    What’s the full code you’re trying to use?

    Plugin Author Shea Bunge

    (@bungeshea)

    It looks like the function you are trying to use is already present in your child theme. You don’t need the function to be declared twice, so it would probably be a good idea to remove one of those instances.

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

The topic ‘Cannot redeclare previously declared functions’ is closed to new replies.