Newsburg Hits Counter - Question | JoomShaper

Newsburg Hits Counter

AB

Alec Barton

Template 1 year ago

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)

https://imgur.com/a/573Nyvy

0
7 Answers
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 1 year ago #171262

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: 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.

0
AB
Alec Barton
Accepted Answer
1 year ago #171264

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

https://essential-reading.com/tech/services/financial-services/ptcl-s-ubank-teams-with-mastercard-to-launch-upaisa-debit-card

Thanks for your help so far

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 1 year ago #171300

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.

0
AB
Alec Barton
Accepted Answer
11 months ago #174737

Thanks Asfakur, much appreciated.

I also need to get the author in there as well. Could you help me with that please?

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 11 months ago #174799

You '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.

0
AB
Alec Barton
Accepted Answer
11 months ago #174824

thank you

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 11 months ago #174861

You're very welcome! Wishing you a wonderful day.

0