How to remove date in pages without hurting posts
![](https://smthemes.com/template/images/solution.png)
10 years ago
Member
I want to disable date on my pages (not posts) in SuperCars theme
I modified to that:
But it stop showing the dates of post in main post list. But when i open some post the date appears. The pages meanwhile don`t show dates now. But i need my posts to show dates everywhere, so what I did wrong ? And how to do it right ? |
10 years ago
Support Service
Hi!
You can replace it with: |
10 years ago
Member
Hello , Alice!
First of all thanks for fast response. I am not really pro , but i guess that was a misprint in your post, right ? Anyway , your code doesn`t work , and I think it is because you meant because otherwise it would always get the same "if" result(show date).So, for showing dates in posts but not in pages you should add this in theloop.php file. Problem solved. But I would be very grateful if someone explains me why is_single() alone does not work |
10 years ago
Member
argh , I tried to highlight the code with bold html-tags.
|
Leave a reply
Search by forum
SMThemes.com Support
-
Categories
- Framework
- Themes
- Affiliate Company
- Sponsorship Useful pages
- How to start using our themes
- Contacts