Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1164551
    LikeLee
    Participant

    Fatal error: Cannot redeclare custom_scripts() (previously declared in /home/content/n3pnexwpnas02_data03/69/3476169/html/wp-content/themes/x-child/functions.php:50) in /home/content/n3pnexwpnas02_data03/69/3476169/html/wp-content/themes/x-child/functions.php on line 78

    Likelee.co

    What happened is I didn’t notice to functions are with the same name and added them via editor.

    how can I fix this mess

    #1164577
    LikeLee
    Participant
    This reply has been marked as private.
    #1164606
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    What you’ve done is re-declare the same function name in the child theme as one in the parent theme, and that doesn’t work. All functions have to have individual names. What you’ll need to do is either remove your new function, or change the name of it so that it isn’t the same as the existing one.

    Let us know how it goes!

    #1164653
    LikeLee
    Participant

    Yeah Rahul I understand the problem, though I have no idea how to access the code to change that.
    Could you help me put with that please .
    Thanks

    #1164702
    LikeLee
    Participant

    never mind I managed to do it myself

    #1164793
    Joao
    Moderator

    Glad to hear you managed to fix it.

    Please contact us if you need help with anything else.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1164551 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>