• Resolved RayBoyd1455

    (@rayboyd1455)


    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

    https://www.ads-software.com/plugins/sp-faq/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Anoop Ranawat

    (@anoopranawat)

    We have upgraded the plugin to 3.2 v
    Please check

    Thread Starter RayBoyd1455

    (@rayboyd1455)

    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

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    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.