Automatic insetion of a “non-blank” excerpt into
-
Two things:
1) A way to have the excerpt (if one exists) from a post show up as a pull quote in the post.
2) The .css code to support the pull quote.
I was able to include the following in index.php
<div id=”pullquote”>
excerpt();
</div>
and had some .css under “.pullquote” in my layout file. The code pulled the excerpt, and displayed it in the defined .pullquote .css code.
But, how do I do it so that it does not include blank excerpts (which get pull quoted to the whole post instead)? I think some kind of loop to check for blank excerpts is needed, buy my PHP skills are sub-novice.
And why won’t the darn font change for me in the .pullquote definition? Everything else works as it should, but the font won’t change it’s face. Here is the code for the .pullquote:
.pullquote {
float: left;
width: 125px;
font-family: Georgia, “Times New Roman”, Times, serif;
text-align: left;
display: inline;
padding: 7px;
background-color: #F1F1F1;
border-color: #CCC;
border-style: solid;
border-width: 1px 0 1px;
margin: 25px 10px auto 0px;
font-size: 80%;
}
.pullquote:first-letter {
font-weight: bold;
font-size: larger;
}
Thank you very much for reading this and not yelling at me!
- The topic ‘Automatic insetion of a “non-blank” excerpt into’ is closed to new replies.