• Resolved Ramandeep Singh

    (@ramancc22)


    Hi All,

    I have a website www.urbaneratrend.com and in that website I need to remove the post date.

    I know this may be a stupid question for wp expert but I’m a learner so if anyone can help me please tell me how can I hide or delete post date.

    Thanks in advance,
    Ramandeep Singh

Viewing 8 replies - 1 through 8 (of 8 total)
  • @ramancc22.

    Go to directory mh-magazine-lite/includes/mh-custom-functions.php Line no 150
    if (!function_exists('mh_magazine_lite_loop_meta'))

    comment this line:
    echo '<span class="mh-meta-date updated"><i class="fa fa-clock-o"></i>' . get_the_date() . '</span>' . "\n";

    Thread Starter Ramandeep Singh

    (@ramancc22)

    Thanks Ravi for your kind help!

    Thread Starter Ramandeep Singh

    (@ramancc22)

    Hey Ravi,

    I have tried what you said but with that my complete website stopped working. Please tell me another way to do this.

    Thanks

    Please add your code after u have added comment.

    There have need single line comment not comment whole function

    Thread Starter Ramandeep Singh

    (@ramancc22)

    I will share it with you after sometime. OK ??

    Thread Starter Ramandeep Singh

    (@ramancc22)

    I have just replaced this code with your comment nothing else. Please tell me if I have did any mistake. Also tell me how to solve this.

    Thanks

    Hello Ramandeep Singh
    You only need to comment single line which is “echo ‘<span class=”mh-meta-date updated”><i class=”fa fa-clock-o”></i>’ . get_the_date() . ‘</span>’ . “\n”;” nothing else.OR you can also do it through css you need to put following lines in style.css
    .mh-meta-date.updated {
    display: none;
    }

    Thread Starter Ramandeep Singh

    (@ramancc22)

    Thanks Guys,

    For your help! But for this I have created a new class as it a sub class and added a tag to hide it.

    display:none;

    That work is completed now. Now anyone can see my website Hurray! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to hide/delete post date?’ is closed to new replies.