skip to Main Content

I use plesk and I have a site in wordpress.

I tried to make a change to the file functions.php which I found from Appereance -> Editor according to this instructions from this section Enqueuing Scripts and Styles #

I went to the end of file and added this code line form here

(function($) {
  $(function() {
    $( '.fl-accordion-button' ).trigger( 'click' );
  });
})(jQuery);

I pressed update and it tried to loaded it shows this error:

This page isn’t working

thenameaddressofmysite.com is currently unable to handle this request.

HTTP ERROR 500

The problem is that I can’t open the backend of wordpress and when I browse my site it has the same message.

Why this happened? How can I fix it? Can I find anywhere functions.php in plesk in httpdocs where httpdocs is the file which contains all the content?

2

Answers


  1. Chosen as BEST ANSWER

    In plesk the httpdocs/wp-content/themes/bridge (bridge) is the theme I use and there is the functions.php so I edit it (removed the code I added) and know it is fine – Dikonstans 4 mins ago edit


  2. You’ve broken the PHP code of the page. Remove your hack and it will work properly.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search