Link to home
Start Free TrialLog in
Avatar of Dan
DanFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Wordpress formating posts as pages

When a post is displayed in wordpress wordpress injects some CSS shown below

type-post for a post and type-page for a page see below

User generated image
I want all posts to be formated as type-page how can I achieve this?
SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan

ASKER

I have a child theme but o can't find the code that injections this CSS that is my problem.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> in template-parts/content-single.php

Is that page in your child theme as well. I would make the edit only in the child theme. That way if your theme ever updates, you will not break whatever you did.
Avatar of Dan

ASKER

Yes i made the change in the child theme for that reason. Thanks
Avatar of Dan

ASKER

I found the code fix.