Show category description on list view page

Home Forums Calendar Products Community Events Show category description on list view page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1060592
    Sylvester
    Participant

    Hello,

    I’ve been trying to show the category description on my category events (list view) page.

    I’ve tried the solutions in these threads:

    Display Category Description on Event Category Page

    Show Category Description

    So I’ve added the following two codes to the content.php file, after copying it from the src/views/list directory and pasting it in a new folder called tribe-events/views/list/…

    Here’s a screen of where i placed the code provided in one of the threads (I’ve tried all of them)

    View post on imgur.com

    But still I see no description.

    Can you please help me.

    Thanks in advance.

    • This topic was modified 10 years, 3 months ago by Sylvester.
    • This topic was modified 10 years, 3 months ago by Hunter.
    • This topic was modified 10 years, 3 months ago by Hunter.
    • This topic was modified 10 years, 3 months ago by Hunter.
    #1060731
    Hunter
    Moderator

    Hey Sylvester,

    Hope you’re having a good day 🙂

    How I got the category description to display is by following these steps:

    Make a template override of template file content.php from src/views/list to theme-folder/tribe-events/list. The code to call the necessary category description is as follows:

    <?php echo category_description() ?>

    Open your theme’s functions.php file, input the following code at the bottom and save your changes:

    if( is_tax() ) {
    echo term_description( get_queried_object_id(), 'tribe_events_cat' );
    }

    Let me know if you’re able to get the category description displaying as desired! Thanks for choosing PRO and have a great weekend!

    #1078191
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Show category description on list view page’ is closed to new replies.