Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1273150
    Hello
    Participant

    Hi,
    Please help with this message below. Please read.

    Edit Themes

    Error : Please fix your theme to make plugins work correctly: Go to the Theme Editor and insert <?php wp_head(); ?> just before the </head> line of your theme’s header.php file.

    Error : Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert the following string: <?php wp_head(); ?> Please enter it just before the following line of your header.php file: </head> Go to your theme editor: click here.

    So, I went to the Theme editor in WordPress but the header.php file is not in my child theme. So I went to my host’s File Manager to see the file.

    But there is no </head> line, only </header>?

    I entered the code but nothing happened and the error message was still there,

    Please look into this.

    Thank you.

    #1273152
    Hello
    Participant
    This reply has been marked as private.
    #1273207
    Christian
    Moderator

    The file that you need is _header.php located in wp-content\themes\x\framework\views\global. See https://community.theme.co/kb/customization-best-practices/ to learn how X is structured.

    Your plugin must be badly written to throw that error.

    X was built with WordPress coding standards <?php wp_head(); ?> is included.

    Thanks.

    #1273231
    Hello
    Participant
    This reply has been marked as private.
    #1273240
    Rupok
    Member

    Hi there,

    You don’t need to do anything. <?php wp_head(); ?> is properly added to the theme already and there should not be any issue with that. Where you are getting those error message? On a plugin?

    #1273250
    Hello
    Participant
    This reply has been marked as private.
    #1273261
    Rupok
    Member

    Hi there,

    Did you edit the parent theme before? Kindly install a fresh copy of X and check again.

    Thanks!

    #1273271
    Hello
    Participant
    This reply has been marked as private.
    #1273289
    Rupok
    Member

    Hi there,

    So the error coming up all of a sudden? Perhaps it’s causing by a plugin. You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    Also re-installing theme won’t wipe out any customization but if you ever edited the theme files then that will be wiped and that’s what you should do now because you should not edit the parent theme files.

    Thanks!

    #1273296
    Hello
    Participant
    This reply has been marked as private.
    #1273450
    Nico
    Moderator

    Hi There,

    In this case, to further check your setup we need to have your FTP credentials in private reply.

    While we check after you send the credentials, you could test for plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time. As said also above this thread.

    Let us know how it goes.

    Thanks.

    #1273696
    Hello
    Participant
    This reply has been marked as private.
    #1273742
    Hello
    Participant
    This reply has been marked as private.
    #1274112
    Rupok
    Member

    Hi there,

    Thanks for writing back. Your theme and Child Theme seems fine, no issue there. I believe the plugin just looking for the wp_head on a static file but it could be somewhere else as well. Since other plugins are doing that properly, so apparently the plugin failing to determine that properly.

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