Hello Steve123,
Thanks for updating in!
You do not have to fix it. This isn’t an error with regards to WordPress standards at all. Your plugin is displaying it as if it is an error according to the plugin. If this is an error at all, your website will not be displaying correctly or even anything on the page. Do you know that wp_head()
loads the css stylesheet and wp_footer()
is loading all the js files? If these functions were none existent in X theme, then nothing should working.
Please ignore this warning. Your plugin does not recognize the template structure of X. If there is a need to add a piece of code in the wp_head() coming from the plugin so that it will work, you will have to do the following steps:
1.) Please install a child theme. Because what you are trying to accomplish requires a template customization, we would highly to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
2.) Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
3.) Insert the following code into that new file
<?php
// =============================================================================
// VIEWS/HEADER/BASE.PHP
// -----------------------------------------------------------------------------
// Declares the DOCTYPE for the site, includes the <head>, opens the <body>
// element as well as the .x-root <div> and .x-site <div>.
// =============================================================================
$x_root_atts = x_atts( apply_filters( 'x_root_atts', array( 'id' => 'x-root', 'class' => 'x-root' ) ) );
$x_site_atts = x_atts( apply_filters( 'x_site_atts', array( 'id' => 'x-site', 'class' => 'x-site site' ) ) );
?>
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<?php wp_head(); ?>
<?php // add the code here ?>
</head>
<body <?php body_class(); ?>>
<div <?php echo $x_root_atts; ?>>
<?php do_action( 'x_before_site_begin' ); ?>
<div <?php echo $x_site_atts; ?>>
<?php do_action( 'x_after_site_begin' ); ?>
4.) Save the file named as base.php
5.) Upload this file to your server in the child theme’s folder wp-content\themes\x\framework\views\header\
If no code has been provided by the plugin, it should automatically inject the code using the the hook or filter for the wp_head()
or wp_footer()
. Just sit back and let the plugin integrate with X theme.
Hope this would explain briefly.