Hi, we would like hits to appear on our article pages but I see the original demo of the Newsburg template does not have them. Is there somewhere we can switch them on or do youahev any code which will make them appear (ideally here - see below)
Newsburg Hits Counter
Accepted answer
Marked as the solutionYou 're welcom. For author: please use this additional custom css
.img-top-wrap .article-info:last-child .createdby::before{ content: 'Author:'; }
.img-top-wrap .article-info:last-child .createdby {
display: inline !important;
margin-right: 5px;
}
Best regards.
4 more replies
Hi Alec Barton,
Thank you for reaching out. Adding this custom css might work.
.img-top-wrap .article-info:last-child .hits {
display: block !important;
margin: 0 auto;
}
.img-top-wrap .article-info:last-child .hits::before{
content: '';
}
Custom css doc: https://www.joomshaper.com/documentation/helix-framework/custom-code-css-js-meta#documentation-heading-3
Please add your site link, if you have further queries.
Best regards.
That is great, it shows the hits now but there is a bit gap between the date and hits. Would like them both of them in the centre
Thanks for your help so far
Kindly replace the previously provided CSS with this new custom code. I hope it will meet your expectations.
.img-top-wrap .article-info:last-child {
justify-content: center;
}
.img-top-wrap .article-info:last-child .published {
line-height: 2 !important;
margin: 0 !important;
}
.img-top-wrap .article-info:last-child .hits {
display: inline !important;
}
Best regards.
Thanks Asfakur, much appreciated.
I also need to get the author in there as well. Could you help me with that please?
thank you
You're very welcome! Wishing you a wonderful day.