Title: Breaking html validation
Last modified: August 30, 2016

---

# Breaking html validation

 *  Resolved [RayBoyd1455](https://wordpress.org/support/users/rayboyd1455/)
 * (@rayboyd1455)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/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/](https://www.griffincenter.com/griffin-dev-823475/)
   Ray
 * [https://wordpress.org/plugins/sp-faq/](https://wordpress.org/plugins/sp-faq/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [anoopranawat](https://wordpress.org/support/users/anoopranawat/)
 * (@anoopranawat)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaking-html-validation/#post-6896851)
 * We have upgraded the plugin to 3.2 v
    Please check
 *  Thread Starter [RayBoyd1455](https://wordpress.org/support/users/rayboyd1455/)
 * (@rayboyd1455)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaking-html-validation/#post-6896902)
 * I can confirm the div tag is now gone from the head section of the html source
   for the pages.
 * **There is an issue with the update** though, all our Categories have been deleted
   from the FAQs Category list and as all our pages with faqs on them were using
   categories to display a list of faqs the faqs are no longer displayed on the 
   pages.
 * Is there a way to restore the Category list, with the old IDs, so we do not need
   to edit each page with a FAQs on it?
 * Now using WP responsive FAQ with category plugin version 3.2
    Wordpress version
   4.4
 * PS there was no setting page before or after for this plugin, that I could find
 *  [anoopranawat](https://wordpress.org/support/users/anoopranawat/)
 * (@anoopranawat)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaking-html-validation/#post-6896907)
 * Hello,
 * Now we have removed the setting page and added the setting in the shortcode as
   parameters.
 * We have also added custom Categories section for FAQ. Just go to FAQ-> FAQ Category
   and check.
 * Please create all the categories again if not their and use the category shortcode
   to display the faqs.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Breaking html validation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sp-faq_b7d2d9.svg)
 * [WP responsive FAQ with category plugin](https://wordpress.org/plugins/sp-faq/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sp-faq/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sp-faq/)
 * [Active Topics](https://wordpress.org/support/plugin/sp-faq/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sp-faq/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sp-faq/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [anoopranawat](https://wordpress.org/support/users/anoopranawat/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/breaking-html-validation/#post-6896907)
 * Status: resolved