Support » Theme: Nisarg » Help: Remove Date and Time on Post but keep it on Homepage

  • I would like to remove the Date and Time on Post but keep it on the Homepage. I did this before in the previous version.
    I found this code in template-tags.php
    $entry_meta = '<i class="fa fa-calendar-o"></i> <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s </time></a><span class="byline"><span class="sep"></span><i class="fa fa-user"></i>

    If I remove the time class, the theme removes date/time on homepage and post.
    I would like to keep the date on the Homepage and delete it from Post. How would I do this? Thank you.

Viewing 1 replies (of 1 total)
  • Theme Author Falguni

    (@falgunihdesai)

    Hi,

    You can create a copy of the function having the above code with different name in different name (ex. nisarg_posted_om_home() ) in template-tags.php. Call the appropriate function on index and single page. But do this changes in child theme and only if you have little bit coding knowledge. Otherwise you can break your site.

    Falguni

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.