Moderator
t-p
(@t-p)
Thread Starter
Elemee
(@elemee)
Thanks, t-p. Rather than rely on plugins (I already use Thumbnails for Excerpts) I’m trying to learn how to do this via PHP and CSS. I’m a retired guy with little coding experience, just an insane desire to understand how to make a web site that can display media I’ve created. I’m trying to understand how the coding works as much as I’m trying to get the site up and functional. I do appreciate your suggestion, and any advice you might have on where I can learn more about how to style content in WP. -Les
You could simply put your excerpt into some html tags and apply a CSS class to it.
Something like that:
<span class="myExcerptClass"><?php the_excerpt() ?></span>
And in your CSS stylesheet
.myExcerptClass { styling goes here }
Thread Starter
Elemee
(@elemee)
Thanks, nicosFR. That seems pretty simple and I used it to make some styling of the excerpt happen. Now I just have to figure out the CSS box model and apply it to the excerpt.