Home › Forums › Calendar Products › Community Events › Remove Comments from the Add and List page
- This topic has 11 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
May 4, 2012 at 12:00 pm #18707
Mark
ParticipantI have comments turned off in the General tab but Comments are showing up in the Add and List page for the Community Events.
-Great work with Community Events!-
-MarkMay 7, 2012 at 11:20 am #18773Jonah
ParticipantHi Mark,
Unfortunately we don’t have this as an option now, but I’ve created a ticket to have it done in an upcoming version. For now, you can hide the comments form via CSS.
I hope that helps but let me know if you have any questions.
Cheers,
JonahJune 1, 2012 at 1:44 pm #20071Jim McClain
ParticipantSorry for bringing up an old topic, but I have an issue regarding the comments form display.
I don’t want the comment form to display on any of the CE form pages, so I used some CSS I thought would get rid of it. I added this to my tribe-events-community.css file, located in my theme/events/community folder:
#comments { display:none; }
That not only removes the comment form, but also the space it takes up. Unfortunately, it also removes the comment form from all my website’s posts and pages it should appear on.
How can I use CSS to remove the comments form just from CE form pages? If that’s not possible, what conditional might I add to my theme’s comments.php that will prevent the comments form from appearing on CE forms?
I realize a fix is on the to-do list, but I’d like to fix this, even if only temporarily, before presenting this feature to my visitors.
Thanks,
Jim
June 3, 2012 at 12:26 pm #20111Jonah
ParticipantHi Jim,
I think I have a good interim solution for this. You can use the adjacent CSS selector (+) and target the .type-wp_router_page class which will be unique enough (I doubt any other plugin you have is going to be using WP Router) for now. Here’s the CSS:
.type-wp_router_page + #comments + #respond {
display: none;
}
This will hide just the respond form… In 1.0.1 we’ll have conditionals and body classes for the community pages so targeting things in CSS and applying custom code to community pages will be much easier!I hope that has been helpful 🙂
– Jonah
June 3, 2012 at 1:44 pm #20116Jim McClain
ParticipantHi Jonah,
Thanks for that. The CSS you suggested didn’t work, but this did:
.type-wp_router_page + #comments {
display: none;
}Sorry I don’t know how to put code in its own yellow block like you did. Is that something you can share?
Thanks again. The CSS works fine the way I edited it. For others, it may work differently, depending on your own theme.
Jim
June 5, 2012 at 3:11 pm #20203Jonah
ParticipantHi Jim,
Glad to hear that worked. You can wrap CSS and PHP (without PHP tags) in
tags to get it showing in the yellow box.Thanks,
JonahJune 5, 2012 at 3:43 pm #20206Jonah
Participant… code tags
July 18, 2012 at 12:43 am #22253Carlos
ParticipantHey Jonah has this been addressed in the latest release of the community events addon?
July 18, 2012 at 4:20 pm #22317Jonah
ParticipantHi Carlos,
I don’t believe so. I just got an update from one of the developers who was looking at it but it did not make it into 2.0.8. You’ll either need to apply the above workaround or wait for the next release. It should make it in by then. Thanks for your patience.
– Jonah
July 20, 2012 at 7:24 am #22460Carlos
Participantno luck with the above code…assuming I put it in the right place..in my case either the CE .CSS file or in my custom css Thesis file. It could be because I use DISQUS as a comment system instead of the default wordpress. I do know that DISQUS will disappear on my other pages/posts if I toggle comments in the page/posts options, but obviously that does not appear to be active with CE.
July 20, 2012 at 7:31 am #22461Jonah
ParticipantHi Carlos,
The above code will likely not work with the DISCUS comment system and you will need to figure out how to hide it by targeting the div containing DISCUS instead.
– Jonah
July 7, 2015 at 6:25 am #977392Support 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 ‘Remove Comments from the Add and List page’ is closed to new replies.
