Site logo

Archived topic

Modifying Post meta

14 replies · Started by Eli on January 17, 2020

Viewing posts 1–15 of 15

Hey guys,

I've been using generatepress on one of my sites and absolutely love it. However, I was wondering if it's possible to modify the post meta at the top.

Currently it doesn't display the post title and I was wondering about some additional edits.

So in the green area I'd like to display the post title.

In the blue highlighted area id like to prefix that with Posted:

In the orange area I was wondering if it was possible to utilize Font awesome icon's such as Comment Icon (number of comments) Some Icon (number of content views)

I'm not quite sure how to achieve the result I'm looking for. Any help is appreciated.

Hey Leo,

You were right, for some reason I disabled the page title months ago for some strange reason. So that's re-enabled.

That's already enabled.

Can you guide me to a single post that's not using a template?

I'm not sure what you mean?

I clicked on the "Advanced Truck & Auto" article from the home page and don't see the meta.

Looks like it's using some sort of specific template though.

Now I just checked the next article "What Are Some Healthy Snacks for Truck Drivers?" and see the meta. Try this CSS:

.entry-meta .posted-on:before {
    content: "Posted on: ";
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

That's not one of our articles :P Now I understand the confusion. You happened to land on our Roadside Repair Vendor Locator, specifically a single vendor listing.

If you scroll down to the trucking news section that'll land you on a normal blog post.

And your css modification worked, woohoo!

So next one is content views, there isn't anything built in for that.

Have you found a plugin you like?

I've looked and saw a few that haven't been updated in months. I think there was one that was up to date but when enabled it didn't add a views count. Even disabled my caching plugin to see if that was the issue.

I also found some code snippets that claimed they could be added to show post views, however when I tried to DIY it, the site threw an error. Mainly when I tried to add the code snippet that was required in the while loop in the single.php file.

I would agree that a plugin is essentially easier. The problem is, there's not any that I can find that work.

I do like the first version of the entry meta and thought about implementing it.

I will try to find a plugin that can add the desired elements to the meta I suppose, appreciate your help.

No problem :)

This archived topic is closed to new replies.