WordPress.org

Ready to get started?Download WordPress

Forums

Multi-language Responsive Contact Form
[resolved] Menu items error (3 posts)

  1. Hinjiriyo
    Member
    Posted 4 months ago #

    The function wp_head() in the file ai-contact-form-template.php leads in some themes to the undesiderable effect not to close submenus after mouse hovering. By commenting out this function the error disappears and everything works fine.

    Seen with the theme "Pinboard".

    I recommend deleting this function in the file.

    https://wordpress.org/plugins/responsive-contact-form/

  2. August Infotech
    Member
    Plugin Author

    Posted 4 months ago #

    Hello Hinjiriyo,

    Thanks for suggestion.

    we used this function only because to load JS file into header section. If you remove this function then those JS file loads into footer section.

    Thanks & Regards,
    August Infotech

  3. Hinjiriyo
    Member
    Posted 4 months ago #

    So, the template loads wp_head() within the content.

    I think it could be better. It is recommend for the most cases to load JS files in the footer section.

    And the call of wp_head() should only happen within the HEAD section of the HTML code.

    And if the theme has already called it in the HEAD section - as most themes do - ALL other scripts and action hooked on wp_head are called once more in your template. This leads to undesirable effects as described in my first post.

    So I think the call of wp_head() in your template can be omitted.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.