Tagged: shortcode
- This topic has 3 replies, 3 voices, and was last updated 7 years, 11 months ago by Mahesh.
-
AuthorPosts
-
February 18, 2016 at 2:06 am #85684GernotParticipant
Hallo Catch Themes team,
I found some older questions here that shortcodes are not working in the featured content area. Is this still true? Would be very sad because I use a lot of shortcodes in may pages and without it the featured content is quite useless 🙁
I already created a child theme. If you have a php solution for the shortcode problem I really would appreciate if you could post it here!
Best regards,
GernotFebruary 18, 2016 at 10:46 am #85698MaheshKeymasterHi @gk017,
No, shortcode still doesn’t work in Featured Content. But you can make it work with child theme. In child theme, you’ll need to override this function
catchbase_featured_content_display
located incatch-base-pro/inc/catchbase-featured-content.php
.Regards,
MaheshMay 10, 2016 at 7:13 pm #91402renschuelParticipantHallo Catch Themes team,
unfortenuately, I need the shortcode functionality in the featured content area now. I created short codes to read featured products out of the woocommerce database to display them in the featured content area. Please tell me, how should I override the function catchbase_featured_content_display (located in catch-base-pro/inc/catchbase-featured-content.php)? What is its content? Do you have an example? Or is the function empty, i.e. the function in the child theme prevents the execution of the overridden function?
Regards,
RenschuelMay 11, 2016 at 10:27 am #91455MaheshKeymaster@renschuel: Do you want the shortcode functionality in Featured Content for Image Content‘s content? If so, you’ll need to create a child theme. You can find more details on creating child theme HERE. Then in your child theme’s
functions.php
copy the functioncatchbase_image_content
located incatch-base-pro/inc/catchbase-featured-content.php
line 530-613. Then modify the line 601 as of original code in your child theme’s function. So following code:
' . $content . '
will look like this:
' . do_shortcode($content) . '
Let me know if any problem.Regards,
Mahesh -
AuthorPosts
- The topic ‘Shortcodes in Featured Content’ is closed to new replies.