Remove Comments from the Add and List page

Home Forums Calendar Products Community Events Remove Comments from the Add and List page

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #18707
    Mark
    Participant

    I 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!-
    -Mark

    #18773
    Jonah
    Participant

    Hi 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,
    Jonah

    #20071
    Jim McClain
    Participant

    Sorry 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

    #20111
    Jonah
    Participant

    Hi 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

    #20116
    Jim McClain
    Participant

    Hi 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

    #20203
    Jonah
    Participant

    Hi 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,
    Jonah

    #20206
    Jonah
    Participant

    … code tags

    #22253
    Carlos
    Participant

    Hey Jonah has this been addressed in the latest release of the community events addon?

    #22317
    Jonah
    Participant

    Hi 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

    #22460
    Carlos
    Participant

    no 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.

    #22461
    Jonah
    Participant

    Hi 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

    #977392
    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 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Remove Comments from the Add and List page’ is closed to new replies.