Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #860905

    Atmo69
    Participant

    I get the following error notification of the Themes page of my WordPress Dashboard:
    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.
    When I click on the Theme Editor link it brings me to the following X: Stylesheet (style.css):
    /*

    Theme Name: X
    Theme URI: http://theme.co/x/
    Author: Themeco
    Author URI: http://theme.co/
    Description: An immensely powerful and endlessly customizable WordPress theme.
    Version: 4.4.1
    License: GNU General Public License v2.0
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: __x__

    */
    Where is the <head> line of my theme’s header.php file?

    #861614

    Jade
    Moderator

    Hi there,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once you have the child theme setup, kindly open the file _header.php from wp-content/themes/x/framework/views/global, make a copy of it and place it in wp-content/themes/x-child/framework/views/global then you can edit the copied file since it contains the header code.