Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #85684
    Gernot
    Participant

    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,
    Gernot

    #85698
    Mahesh
    Participant

    Hi @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 in catch-base-pro/inc/catchbase-featured-content.php.

    Regards,
    Mahesh

    #91402
    renschuel
    Participant

    Hallo 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,
    Renschuel

    #91455
    Mahesh
    Participant

    @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 function catchbase_image_content located in catch-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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Shortcodes in Featured Content’ is closed to new replies.