New Landing How can we help? Themeforest Theme Support Nota Expanding Read More shortcode in product category description

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Nota
  • #315900
    lew-egr
    Member
    Post count: 15

    Hi, Great theme!

    I am using https://wordpress.org/plugins/wp-show-more/ plugin to create expanding ‘Read More’ sections for product categories, however it just displays the shortcode as plain text.

    I had the same issue with another theme, this time getting it to work on brand descriptions, and adding the following fixed the problem.

    add_filter( 'term_description', 'do_shortcode' );

    Unfortunately in Nota, changing that to:

    add_filter( 'category_description', 'do_shortcode' );

    didn’t fix the problem.

    The shortcode works elsewhere on the site, even in the .term-description.container. This shows the cat description under the product filters (with functioning shortcode), but I want the category description to sit under the page title.

    Where am i going wrong?

    Thanks

    #315903
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Glad you like the theme, could you screenshot where you want to place the shortcode just to clarify?

    Cheers,
    David.

    #315907
    lew-egr
    Member
    Post count: 15
    This reply has been marked as private.
    #315914
    David Martin – Support
    Moderator
    Post count: 20834

    It looks like you are adding the shortcode to the category descriptions correct?

    If so, please install and activate the supplied child theme, inside the child theme folder functions.php create a file called page-title.php.

    Inside this file paste this code: https://gist.github.com/webadelic/212654ee685a68cd9535734569c15e81.

    Thanks.

    #315934
    lew-egr
    Member
    Post count: 15

    Hi, that worked a treat. Thanks for your help!

    Cheers

    #315936
    David Martin – Support
    Moderator
    Post count: 20834

    Nice, glad to help you out.

    I’ll add this to the 1.0.4 update I am now working on.

    If you have found the theme/support useful, we appreciate it if you can leave feedback on our item if you have the time as it really helps us out.

    Thanks,
    David.

    #315944
    lew-egr
    Member
    Post count: 15

    No problem. Will do.

    #315945
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks, appreciated. Have a great weekend.

    – David.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register