WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] HTML will not work in sidebar (3 posts)

  1. Blake Anthony
    Member
    Posted 3 years ago #

    I am using the fast secure contact form plugin and I have all of the fields I need in the form. The form works if I paste the short code to a page but when I use the short code in the Text Widget and place it in the Sidebar section the page simply shows the short code.

    So instead of seeing:
    name
    phone
    email
    How can I help you

    It just displays this:

    [si-contact-form form='1']

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    you could try to add this to functions.php of your theme:

    add_filter('widget_text', 'do_shortcode');

    however, be aware that some plugins don't use 'real' shortcode, and this suggestion might not work.

  3. Blake Anthony
    Member
    Posted 3 years ago #

    It worked. I really appreciate the help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.