I tried different codes from different themes and google search. Though everything just shows a notification only if there are notes in a post.
So when there aren’t notes, i wanted to show “0 notes” – How can I do that
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the first look solution seems to be impossible to output anything if Post has no notes due to tumblr custom themes docs, but as we shall see, the impossible is possible.
I invented trick to help you with your question.
The main idea of trick is to create special
css classonly if post has no notes, after it trick is using content of pseudo-elements to insert necessary text in.notesblock of post.Trick requirements: only tumblr markup and css;
Tumblr markup:
One line css: