# 1.7 BB shortcode issues

**URL:** <https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650>\
**Category:** Beaver Builder\
**Created:** [January 23, 2016, 7:13pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650 "2016-01-23T19:13:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![lylechamney](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/lylechamney/32/98_2.png) [@lylechamney](https://community.wpbeaverbuilder.com/u/lylechamney)\
**Post date:** [January 23, 2016, 7:13pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/1 "2016-01-23T19:13:06Z")

</div>

Hi all,

The BB shortcode is perhaps my fave addition to the new version 🙂

I was going through some testing to get ready for some new videos on the subject when I discovered some potential show-stoppers.

The primary one for this topic is that the BB shortcode is not honored in all themes in the widget areas, notably the WP Twenty Sixteen theme.

Create a new template/module/layout and save as such, global or not. Then add the BB shortcode for that to a text widget in 2016; all you see is the shortcode. Change to the BB theme or DWB and there is the layout/module, etc. However, the BB shortcode displays properly within the content of the 2016 page or post. The same can be said for the base Genesis theme; same as 2016.

This is just one of the issues that I have discovered while getting ready to create these new vids. The others have to do with how nested shortcodes (specifically tabs and accordions) behave; sometimes they work, and sometimes they don’t, but that’s the subject for another topic 🙂

Cheers!  
Lyle

---

<div class="post-metadata">

**Author:** ![Danny](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/danny/32/3451_2.png) [@Danny](https://community.wpbeaverbuilder.com/u/Danny)\
**Post date:** [January 24, 2016, 8:41am UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/2 "2016-01-24T08:41:53Z")

</div>

Hi Lyle,

This isn’t actually an issue, it is how WordPress works out-the-box. By default, text widgets do not support shortcodes. Therefore, if you have never encountered this issue in the past, it is likely the theme you’ve used includes the following snippet:

`add_filter('widget_text', 'do_shortcode');`

So if you add the above code to your child themes functions.php file, the shortcode should display your row/module.

Thanks,  
Danny

---

<div class="post-metadata">

**Author:** ![lylechamney](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/lylechamney/32/98_2.png) [@lylechamney](https://community.wpbeaverbuilder.com/u/lylechamney)\
**Post date:** [January 24, 2016, 9:14am UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/3 "2016-01-24T09:14:53Z")

</div>

Hi Danny,

Actually, WP does support shortcodes, or at least the Contact Form 7 one, out of the box in text widgets 🙂

Just to verify, I did a fresh install of WP 4.4.1 on my local XAMPP server. Didn’t do anything else except install Contact Form 7. Pasted the shortcode for the contact form into a text widget, and there was contact form in the sidebar of the default Twenty Sixteen theme. Placing a BB shortcode there results in just the code being displayed.

I have seen the noted filter before and thought that I may need to use it, but I knew I had had them display before in the default WP themes.

Cheers!  
Lyle

---

<div class="post-metadata">

**Author:** ![Danny](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/danny/32/3451_2.png) [@Danny](https://community.wpbeaverbuilder.com/u/Danny)\
**Post date:** [January 24, 2016, 9:26am UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/4 "2016-01-24T09:26:45Z")

</div>

Hi Lyle,

If you’re able to use a shortcode without applying that filter, it is very likely that the plugin is including the function in their plugin. 😉

Thanks,  
Danny

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [January 25, 2016, 7:02am UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/5 "2016-01-25T07:02:29Z")

</div>

Hey Lyle,

I’d just like to add to what Danny said above. CF7 adds the filter only when we use their shortcode. Try adding the CF7 shortcode together with the BB shortcode, you’ll see both working fine. 🙂

Ben

---

<div class="post-metadata">

**Author:** ![granatdesign](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/granatdesign/32/263_2.png) [@granatdesign](https://community.wpbeaverbuilder.com/u/granatdesign)\
**Post date:** [March 4, 2016, 1:10pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/6 "2016-03-04T13:10:00Z")

</div>

just found this thread… Appears that even the BB theme doesn’t work this way either

Does this mean I need to add this to functions?  
add\_filter(‘widget\_text’, ‘do\_shortcode’);

---

<div class="post-metadata">

**Author:** ![granatdesign](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/granatdesign/32/263_2.png) [@granatdesign](https://community.wpbeaverbuilder.com/u/granatdesign)\
**Post date:** [March 4, 2016, 1:25pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/7 "2016-03-04T13:25:52Z")

</div>

strange. I added that code to functions file, and it still wouldn’t work.  
then I checked the box in text widget that says “Automatically add paragraphs” and it works…

who knew?

---

<div class="post-metadata">

**Author:** ![Danny](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/danny/32/3451_2.png) [@Danny](https://community.wpbeaverbuilder.com/u/Danny)\
**Post date:** [March 4, 2016, 1:47pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/8 "2016-03-04T13:47:16Z")

</div>

Hi Grant,

Can you try disabling that option again, as it should work without it. Also, this isn’t a BB Theme problem, WordPress out-the-box doesn’t allow shortcodes in the Text widget.

Thanks,  
Danny

---

<div class="post-metadata">

**Author:** ![granatdesign](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/granatdesign/32/263_2.png) [@granatdesign](https://community.wpbeaverbuilder.com/u/granatdesign)\
**Post date:** [March 4, 2016, 2:02pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/9 "2016-03-04T14:02:27Z")

</div>

yep. works without it now. maybe was a caching isssue

thanks!

---

<div class="post-metadata">

**Author:** ![Danny](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/danny/32/3451_2.png) [@Danny](https://community.wpbeaverbuilder.com/u/Danny)\
**Post date:** [March 4, 2016, 3:40pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/10 "2016-03-04T15:40:40Z")

</div>

Hi Grant,

Yeah, most likely. Thanks for informing us, we appreciate it.

Thanks,  
Danny

---

<div class="post-metadata">

**Author:** ![system](https://community.wpbeaverbuilder.com/uploads/default/original/2X/9/9db1b183a7ea1efa26199a2a2b3511d742473dae.png) [@system](https://community.wpbeaverbuilder.com/u/system)\
**Post date:** [April 27, 2019, 10:21pm UTC](https://community.wpbeaverbuilder.com/t/1-7-bb-shortcode-issues/6650/11 "2019-04-27T22:21:33Z")

</div>


