Title: Shotcode not Working in Widget
Last modified: August 22, 2016

---

# Shotcode not Working in Widget

 *  [kuhashmi](https://wordpress.org/support/users/kuhashmi/)
 * (@kuhashmi)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/shotcode-not-working-in-widget/)
 * I am using contact form 7 plugin to build contact form.
    I use there Shorcode
   in a widget and also put this code in functions.php <?php add_filter(‘widget_text’,‘
   do_shortcode’); ?> to enable the shortcode work in widget but still i am getting
   the error “[contact-form-7 404 “Not Found”]”
 * I don’t no what was the reason.
 * I have also check the shortcode in a page and it works fine but in widget it 
   gives me error.
 * URL: [http://qespro.com/qespro.com/why-qespro/](http://qespro.com/qespro.com/why-qespro/)
 * Any one have a solution for that error.

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

 *  [WhiteScreenOfDeath](https://wordpress.org/support/users/whitescreenofdeath/)
 * (@whitescreenofdeath)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/shotcode-not-working-in-widget/#post-5820142)
 * Hi,
    Try copy pasting code in text view, instead of visual view on your contact
   form page.
 *  Thread Starter [kuhashmi](https://wordpress.org/support/users/kuhashmi/)
 * (@kuhashmi)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/shotcode-not-working-in-widget/#post-5820274)
 * <div class=”col2″>
    [text* your-name “First Name”] </div> <div class=”col2″> [
   text* LastName placeholder “Last Name”]</div>
 * <div class=”col2″>
    [email* your-email “E-mail”] </div> <p>[select industry “
   industry1” “industry2” “industry3”]</p> <p>[select services “services Area1” “
   services Area2” “services Area3”]</p> <p>[submit]</p>
 * From: [your-name] <[your-email]>
    Subject: [your-subject]
 * Message Body:
    [your-message]
 * First Name:[your-name]
    Last Name:[LastName] E-mail: [your-email] Industry: [
   industry] Services Area: [services]
 * —
    This e-mail was sent from a contact form on QESPRO ([http://qespro.com/qespro.com](http://qespro.com/qespro.com))

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

The topic ‘Shotcode not Working in Widget’ is closed to new replies.

## Tags

 * [shotcode](https://wordpress.org/support/topic-tag/shotcode/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kuhashmi](https://wordpress.org/support/users/kuhashmi/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/shotcode-not-working-in-widget/#post-5820274)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
