Deprecated Category Count

Home Forums Calendar Products Community Events Deprecated Category Count

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1085591
    Eric Reynolds
    Participant

    I just updated the Community plugin to 4.0.6 and I can no longer revise src/Tribe/Main.php, line 1981 from “9” to “50” in order to display 50 categories to select from on the community frontend form.

    The deprecated line was $shown_item_count = 9;

    Please let me know what I can do to get my form to display all 50 categories as opposed to a link to dropdown any categories beyond 9.

    Thank you,

    🙂 Eric

    #1086527
    Geoff B.
    Member

    Good evening Eric and welcome back!

    Thank you for reaching out to us.

    We are sorry to hear about the deprecated function preventing you from showing the number of categories you want.
    I would love to help you with this topic.

    I don’t know if that would help, but you could actually get rid of the number of categories limitation by simply using CSS

    #tribe-community-events #event-categories ul li.hidden_category {
    display: block !important;
    }

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1086531
    Eric Reynolds
    Participant

    Thanks Geoff, unfortunately, the CSS didn’t work. The “Show all categories (13)” link still displays I cleared the site and browser cache to no avail.

    Any other recommendations?

    🙂 Eric

    #1086908
    Geoff B.
    Member

    Good evening Eric,

    My bad.

    You are right, you also need to hide the “Show all categories” link with the following CSS rules:

    #show_hidden_categories {display:none;}

    These 2 pieces of CSS combined should give you exactly what you want 🙂

    Let me know if that helps.

    Have a great day!

    Geoff B.

     

    #1086927
    Eric Reynolds
    Participant

    Thank you Geoff. Problem resolved. 🙂 Eric

    #1087045
    Geoff B.
    Member

    Good morning Eric,

    Awesome job! I’m glad this worked for you.

    You are always welcome back if there is anything.

    Have a great day!

    Geoff B.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Deprecated Category Count’ is closed to new replies.