Home › Forums › Calendar Products › Community Events › Deprecated Category Count
- This topic has 5 replies, 2 voices, and was last updated 8 years, 1 month ago by Geoff B..
-
AuthorPosts
-
March 5, 2016 at 1:09 pm #1085591Eric ReynoldsParticipant
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
March 8, 2016 at 10:14 pm #1086527Geoff B.MemberGood 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.
March 8, 2016 at 10:30 pm #1086531Eric ReynoldsParticipantThanks 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
March 9, 2016 at 4:54 pm #1086908Geoff B.MemberGood 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.
March 9, 2016 at 5:20 pm #1086927Eric ReynoldsParticipantThank you Geoff. Problem resolved. 🙂 Eric
March 10, 2016 at 1:18 am #1087045Geoff B.MemberGood 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.
-
AuthorPosts
- The topic ‘Deprecated Category Count’ is closed to new replies.