Site logo

Archived topic

Is there a way to show post views like this?

26 replies · Started by Heath on December 21, 2021

Viewing posts 1–15 of 27

It's probably not recommended but is there a way I could get the post view to show in line like this?

I have post views counter but I'm not pleased with the way it displays and wanted to know if there was a way to get it in line with the author profile pic, then author name, updated date and then the view counter. Is it possible to get it in line?

That's possible with CSS.

Can you add it in to the content template first so we can see if CSS would work to make it inline?

How do I go about that?

Does thepost views counter offer shortcode or anything to add in the post views?

Yes it shows a short code of [post-views]

I dont know what you mean by content template.

Are you trying to add the post view count into single post?

I checked your single post page, it doesn't seem to be using GP, can you confirm?

I am using generatepress. I was wanting it to show online as shown in the screenshot that I placed in the private field in the original post with the views showing very last. Right now they are showing right below the share buttons which I don't like.

I just can't get it figured out.

You should be able to see a block element - post navigation at appearance > elements.

Then in this element, add a shortcode block with the[post-views] after the headline block which presents the date.
https://www.screencast.com/t/ybyiYCyb

Once it's done, we can help with CSS :)

I think I've done it right.

Hi Heath,

To get a context: Is this for a hero section on the single post page? I'm not sure I'm seeing one as I'm only seeing a featured image.

You may have to create a Block Element - Page hero and do your desired layout on it. :D

No I was just wanting to style the author, date and post views to all look inline with each other. I added the post views short code like Ying suggested and just need a little CSS to make everything look good.

This archived topic is closed to new replies.