Implementing styles for single-post pages using child theme
-
Hi,
I have been reading several posts but I haven’t come across a solution yet.I am currently using TwentySixteen theme. I have correctly set up a child theme with style.css and functions.php.
I have a front page and several posts. I want my posts to be styled differently to my pages, such as removing footers and aligning the divs differently to default TwentySixteen format.
in style.css on child theme I have the following code –
.entry-footer { display: none !important; } .entry-title{ text-align: center; } .entry-content { float: none !important; margin-right: 25% !important; margin-left: 25% !important; width: 50% !important; }
When I update, this style is applied to front page and posts. I want to apply this style ONLY on posts or single-posts. I want to configure my front page separately.
how can I do this? Ideal solution should be adding code to functions.php or style.css in my child theme. can I change the above css code to specifically apply the given style to single-post?
Thank you
- The topic ‘Implementing styles for single-post pages using child theme’ is closed to new replies.