Support » Plugin: Comments - wpDiscuz » How to Remove “Time” from Comment “Date”

  • Resolved jetxpert

    (@jetxpert)


    Hi there,

    How can we remove or disable the “time” from the comment “date” without changing WP > Settings > General > Time Format

    Reason: We use another plugin that must have Time Format activated in order to work.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @jetxpert,

    Please navigate to the Dashboard > Comment > Settings > Styling admin page put the following CSS code in the “Custom CSS code” textarea:

    .wc-comment-footer :nth-child(2){
    display: none !important;
    }

    Please don’t forget to delete all caches and press CTRL+F5(twice) on the frontend before checking

    Thread Starter jetxpert

    (@jetxpert)

    Oops! That won’t work. Your CSS also hides other parameters (e.g., number of votes, replies, etc.)

    Got another one that will work better?

    Cheers!

    Thread Starter jetxpert

    (@jetxpert)

    Here’s the reason why is doesn’t work:

    https://wordpress.org/support/topic/hide-the-time-from-a-comment-post-leave-the-name-and-date/

    Looks like “Time” cannot be disabled or hidden from “Date” unless a php code (snippet) is developed to modify the metadata defining date and time.

    Cheers!

    Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @jetxpert,

    Please delete the old code provided above and use the following one.

    .wc-comment-date {
        display: none !important;
    }
    Thread Starter jetxpert

    (@jetxpert)

    Sorry, that did not work. What you provided deletes the entire date and time. We only want to delete time. No worries. We’ll figure it out. Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Remove “Time” from Comment “Date”’ is closed to new replies.