Tagged: x
-
AuthorPosts
-
March 31, 2016 at 9:53 am #860905
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?March 31, 2016 at 5:52 pm #861614Hi 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.
-
AuthorPosts