Home › Forums › Calendar Products › Events Calendar PRO › Unlink Category from Single View
- This topic has 6 replies, 5 voices, and was last updated 11 years ago by
Support Droid.
-
AuthorPosts
-
July 31, 2012 at 10:52 pm #23035
Andrew
MemberOn the single view event page, there is a field called “Category” with a link to the category the event belongs to. I’d like to remove that hyperlink and just list the category name instead. The single.php file has a php line , but that doesn’t allow me to remove the hyperlink and keep the category name. Where can I make this change?
August 1, 2012 at 7:40 am #23045Andy Fragen
ModeratorTry adding the following to your CSS.
dt.category-label, dd.category-meta { display: none; }
August 1, 2012 at 7:43 am #23046Andy Fragen
ModeratorOops, the above will remove it entirely. Look in your /resources/views/single.php, copy it to your theme/events/ directory and I believe you’ll find the code in that file to remove the hyperlink from the category.
August 1, 2012 at 7:51 am #23047Andy Fragen
ModeratorIt seems to be populating from the function tribe_meta_event_cats, I don’t know where it is but it’s likely there’s no override as it’s in the core somewhere.
August 1, 2012 at 6:35 pm #23090Rob
MemberHey Andrew. Thanks for the note; I believe Andy is correct here and that this is something in the core (which we strongly advise against modifying) but let me check whether anyone on our dev team has any ideas to workaround it. No guarantees but stay tuned and we’ll do what we can.
August 1, 2012 at 7:31 pm #23104Daniel Dvorkin
MemberHey Andrew, Andy is right about ‘tribe_meta_event_cats’ not being able to print strings without links, but you don’t need to modify core.
1) Add this to your theme’s functions.php: https://gist.github.com/3232646
2) Create (if you don’t have it already) a ‘events’ folder in your theme
3) Copy wp-content/plugins/the-events-calendar/views/single.php to that ‘events’ folder in your theme.
4) Edit that single.php in your_theme/events/ and replace tribe_meta_event_cats(); with my_tribe_meta_event_cats();
5) Enjoy 🙂
6) Let me know if that works as intended.July 7, 2015 at 6:25 am #977483Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Unlink Category from Single View’ is closed to new replies.
