Breaking html validation
-
Hi,
we could use some help.
The plugin is adding this line of code to the<head>
section of each page on the site, I tested by deactivating the plugin and the line of code was removed.This is the line at 110 of the source code of our dev home page;
<div id="faq-accordion-1" class="faq-plugin-accordion" data-active="false" data-animate="true" data-collapsible="false"></div>
It is not valid html to have a div tag in the head tag section of the html code.
This is a dev site and we will be going live soon so we would like to fix this, looked through the plugin’s code but could not find what is adding it to the head.
Downloaded the files and I think it is being added by line 164 of the faq.php file;
echo '<div id="'.$id.'" class="'.$class.'" '.$data.'></div>';
It is being added to the head by line 147;
add_action( 'wp_head', 'faq_option_script' );
can this be added in the footer or after the head?
Can this be added to the head as a meta tag rather then a div tag?
https://www.griffincenter.com/griffin-dev-823475/
Ray
- The topic ‘Breaking html validation’ is closed to new replies.