-
gindavallParticipant
Is there any way to show full posts? I want to have the first few being full posts, not excerpts, before the grid and I don’t see any way to do it.
Daniel TaraKeymasterOpen all files called content-*.php and replace <?php the_excerpt(); ?< with <?php the_content(); ?<
gindavallParticipantIt works, but then all posts are full. It doesn’t give excerpts on the grid anymore. There’s no way to have just the first post full and then the following ones all be excerpts? I can always put a “read more” tag in there but I was hoping to make the theme do it.
Daniel TaraKeymasterTry putting the function in conditionals:
if( pinboard_is_teaser() ) the_excerpt(); else the_content();
zxyParticipantOnly problem with this, is that there is no formatting to the post. Any one know how to keep the proper formatting?
gindavallParticipantThank you very much Daniel. I do love getting answers and feedback to help customize this wonderful theme. And you’re right, that code fixes it. But now I see that “zxy” above is correct, the paragraph formatting is stripped. Can I change that as well?
KitsuneParticipantI found the solution to this! At least it worked for me…
Here’s what I did — Go to Appearance > Theme Options > Layout and enter the following in Custom CSS:
@import url(“../pinboard/style.css”);
.entry-summary p {
margin:1em;
}You can substitute any number in there, but 1 worked best for my font size.
Whee! I hope it works for you, too!
gindavallParticipantThanks for the reply, Daniel. It did work at first, but now I have more posts further down the page which are showing as full posts. Could you take a look and let me know what to change? http://thebluebottletree.com/
Also, as Kitsune pointed out, the formatting is stripped when we do this. He has pointed out a workaround, but do you have a better one that doesn’t mess with the margins?
gindavallParticipantIn case anyone else is having this trouble, I’ve figured part of it out. To summarize, I’ve hacked the php so that the first two of my home page posts are full posts, the rest of them being the pinboard style excerpts. However, I found that as I added more posts and the page got longer, some of them would be full posts.
What I mean is that there would be two full posts…then a bunch of excerpts…then three full posts…then more excerpts.
That property seems to be controlled by the setting Appearance -> Theme Options -> Blog Pages. Set the “Full posts to display before grid” to zero. That removes those three full posts that were showing up further down the page.
BunnyCatesParticipantCan someone explain where to put the conditional function to make this work? I would love my Teaser posts to be the entire post and then the pinboard posts to be excerpts. Any help appreciated. THANKS
Daniel TaraKeymasterIn content-*.php you can find a single reference to the_excerpt();
Replace that line with the code above.
wongscParticipantHi gindavall! Would you be able to share how you hacked the php to achieve the 2 full posts before grid? I’m also trying to achieve that effect but to no avail.. Thanks in advance!
gindavallParticipantI just followed the advice that Daniel gave above. It’s not user-friendly because you’re hacking into the site code, not just modifying the CSS. You have to know your way around php a bit. Do just what he said. Go to content-*.php in the editor and find the one place where it says “the_excerpt();”. Replace that with the code he provided above. A hint, it’s in the section called div class=”entry-summary” in the content-*.php file. And of course, please remember that any updates to the theme will overwrite any changes you make to the php and you’ll have to do them again.
SEOSlammerParticipantYay! Thanks Daniel and to you too gindavall for steering us in the right direction! Good code IS poetry π
- This reply was modified 12 years, 1 month ago by SEOSlammer.
- This reply was modified 12 years, 1 month ago by SEOSlammer.
AlexanderParticipantYou may have a look at my blog to see what it looks like (no promising as I play around alot :)).
I use only one featured post and also hide the image on the blog page, as I don’t want it to compete with the slider images.
It’s better to use margin-bottom than margin as it gives you better control.
Cheers,
Alexander @ http://www.mouseclick.com
You must be logged in to reply to this topic.