admin管理员组

文章数量:1122832

Is there a way activate "Full Post" via Custom CSS or any other way?

Right now I am stuck with Excerpts on the Homepage and my Theme Customizer > is missing Content Options

Here below is what my theme (named Blog Writing) should provide but does not :/

Or could this be used?

Thank you

Is there a way activate "Full Post" via Custom CSS or any other way?

Right now I am stuck with Excerpts on the Homepage and my Theme Customizer > is missing Content Options

Here below is what my theme (named Blog Writing) should provide but does not :/

Or could this be used? https://gist.github.com/thefuxia/2973189

Thank you

Share Improve this question edited Apr 23, 2020 at 23:04 KarmicP asked Apr 23, 2020 at 22:49 KarmicPKarmicP 12 bronze badges 2
  • The link you provided transforms full content into an excerpt, so that's backwards from what it sounds like you're wanting. :) – WebElaine Commented Apr 24, 2020 at 16:03
  • I know @WebElaine :). I've tried to invert /excerpt/content/ everywhere in the file, but it does not work on my child theme of blog writing, whose parent is theme bloge – KarmicP Commented Apr 25, 2020 at 22:49
Add a comment  | 

1 Answer 1

Reset to default 0

CSS can only change things visually. So, it can hide what's already there, but it can't make more text appear than what is actually being output to the page.

For this type of change, it's typically best to create a child theme - which basically just means you create a new folder in /wp-content/themes/ and add a style.css file with a few comments at the top telling WP this is a child of whatever parent theme you're using. From there, you copy only the file(s) that need changes into your child theme folder and change them there. That way you can keep the parent theme updated and it won't overwrite your tweaks.

Themes vary in how many files they have and where they store information, but homepage code is often found in front-page.php or home.php. You're looking for some variation of <?php the_excerpt(); ?> which you should be able to just change to <?php the_content(); ?> - though depending on the theme, you might also have to adjust some CSS to have this display appropriately.

本文标签: customizationCustom CSS for full post vs excerpt (Content Options)