December 16, 2012 at 2:53 am #18772
Hey guys, thanks in advance for your assistance. Not sure why this is occurring but the shortcodes are not working in the product description area. The end result is the raw shortcode display..please advise. Thanks!December 16, 2012 at 5:39 am #100851March 3, 2013 at 4:19 pm #100852
I have the same problem now: the shortcodes are not working in the product description area. Here is the link on test installation: http://fotoetude.com/test/shop/test_1/ (only WP, theme, woocommerce, bbpress, all the last versions)..
By the way, I cannot use the dynamic templates for single product page, right?
Please, give me some ideas with shortcodes.March 5, 2013 at 12:29 am #100853
This is actually intentional but you might try adding the wordpress post content filter to make them work:
add this to the top of your functions.php file:
March 5, 2013 at 3:04 pm #100854
Thank you Kriesi for your time and for wonderful Propulsion theme too :)
Ok, now the shortcodes work for excerpt as hero-text, but I think, it will be more logical to work for them in short description field too. It means the following structure, which is more clearly for visitors: the combination of the main description of product (use the WP-editor in product page for this, it works fine) and the additional description in “short description field”, under main content. Some visitors like this traditional table “short description + preview sections + something else”. Please, look at here one more time: http://fotoetude.com/test/shop/test_1/. I suppose, it will be fine, if the shortcodes will also work in short description field too. Is it possible to do that? If yes, please, help me with this.March 6, 2013 at 10:20 am #100855
I think the product short description on this page is the excerpt. After adding the code Kriesi provided, the shortcodes execute in both large and small content areas.
NickMarch 6, 2013 at 12:28 pm #100856
Hi Nick, thank you for answer!
I don’t understand well about of the Hero text excerpt posibility. Let me explain, what I mean. So, here is the screenshot: http://www.fotoetude.com/images_for_support/hero_text.jpg and, If I choose there “yes”, the content of short description will be shown in the top of page (under or near of the product slider/gallery), like here http://fotoetude.com/test/shop/test_1/ But what is the reason of this (?), if 1. we can do it with help of main WP-editor in product page, and 2. all content from short description still remains in the short description table as bad looking text – so, we only make double of the descriptions with help of Hero text excerpt, right?
Thanks to HTML, it is possible to create well looking text-style in short description field too (see the little table under bad looking text on screenshot: http://www.fotoetude.com/images_for_support/sort_description.jpg ). Ok, no shortcodes there, no “hero text excerpting”, it is ok in case I can find some list of shortcode in HTML, in order to insert them as manual. It is requirement of my customer. Can you provide me that list? If that list doesn’t exist, may I ask about of a few shortcodes in HTML-format for short description field? I need the follow:
2. Icon links
3. Icon boxes
4. Column layouts
5. and dropcaps
That’s it (hope, not so much, it will be enough for my customer).
Anyway, thanks for time!March 6, 2013 at 9:26 pm #100857
Click ”add post” or ”add page” and you will see on the text editor menu a symbol that looks like that. It is the shortcode generator. Enjoy! http://www.clipular.com/c?2580034=jTxJe_X1JCILxfCZpaRv6v2W6xc
NickMarch 6, 2013 at 10:58 pm #100858
May be, you didn’t understand me right. Please, see the screenshot one more time: http://www.fotoetude.com/images_for_support/sort_description.jpg . Do you see there all not working shortcodes? Also see there the table with dropcaps (blue and red). You can see it here: http://fotoetude.com/test/shop/test_1/ (in the bottom of page). What is the difference between both of parts? Here is the explanation: http://www.fotoetude.com/images_for_support/sort_description_1.jpg – it is the editor of the short description of product. Do you see there the shortcode button? Yes, it is there, right :). But generated with help of this button shortcodes unfortunately don’t work in this field, in my case. I say about, maybe, 10 times here.
Only HTML “shortcodes” work (on published page, of course): http://www.fotoetude.com/images_for_support/sort_description_2.jpg. The generated shortcodes, as you wish me, don’t work for product short description field: http://www.fotoetude.com/images_for_support/sort_description_3.jpg.
I need either working generated shortcodes for product short description field (which is the best decision for me), or the HTML examples of these shortcodes.
Ones again (for product short description field): This is generated dropcap:
[dropcap2]H[/dropcap2]Not works. This is the HTML dropcap:
<span class="dropcap2 bg-blue">it works (with additional custom CSS code only). Maybe, the shortcode generator can generate the HTML shortcodes with CSS too and I can just copy the HTML into the short description field? It will be well in this case too, because my customer doesn’t like the following text box:
‘[hr] This is the example from product short description section:
[one_third first][dropcap2]H[/dropcap2]ere is the column 1 just for testing reason[/one_third] [one_third][dropcap2]H[/dropcap2]ere is the column 2 just for testing reason[/one_third] [one_third][dropcap2]A[/dropcap2]nd here is the column 3, again for testing reason[/one_third] This is the example of iconbox shortcode: It isn’t work here in any places, unfortunately: [iconbox title="Broshure" icon="x-office-address-book.png"]The 10 first customers will get the unique color broshure as gift, hurry up![/iconbox]
What is the strange here: it is ok for excerpt as hero-text, but shortcodes still don’t work in description table. [hr]`
in his site instead of the nice-looking description text-box http://www.fotoetude.com/images_for_support/sort_description_4.jpg – is it much better, isn’t it?
Hope, now it is clean all enough. Please, explain me, how it is possible to get the working shortcodes for, ones again, product short description field?
Thank you in advance!March 7, 2013 at 8:40 am #100859
Update: maybe, for the short description field, it is enough to replace the [dropcap2]Letter[/dropcap2] to <span class=”dropcap2″>Letter</span> only for all generated shortcodes?
Unfortunately not. I have already checked the iconbox shortcode with span class=”" – not work. So, for this reason I ask help. Hope, it is enough just allow for using the shortcode generator for the product short description field.March 10, 2013 at 8:50 pm #100860
Ok. The one way I got it working is by editing line 164 in /config-woocommerce/config.php in the theme folder, which looks like
$output .= get_the_excerpt();
and I changed it to look like
$output .= do_shortcode(get_the_excerpt());
NickMarch 10, 2013 at 10:13 pm #100861
Dear Nick, thank you so much! It is working now! (your support every time looks like magic for me :) )March 11, 2013 at 7:03 pm #100862
The topic ‘Shortcodes not working in Product Short Description Area’ is closed to new replies.