Full posts

Viewing 15 posts - 1 through 15 (of 32 total)
  • #6030
    gindavall
    Participant

    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.

    #6047
    Daniel Tara
    Keymaster

    Open all files called content-*.php and replace <?php the_excerpt(); ?< with <?php the_content(); ?<

    #6067
    gindavall
    Participant

    It 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.

    #6081
    Daniel Tara
    Keymaster

    Try putting the function in conditionals:

    if( pinboard_is_teaser() )
        the_excerpt();
    else
        the_content();
    #6098
    zxy
    Participant

    Only problem with this, is that there is no formatting to the post. Any one know how to keep the proper formatting?

    #6114
    gindavall
    Participant

    Thank 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?

    #6156
    Kitsune
    Participant

    I 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!

    #6363
    gindavall
    Participant

    Thanks 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?

    #6534
    gindavall
    Participant

    In 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.

    #6732
    BunnyCates
    Participant

    Can 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

    #6740
    Daniel Tara
    Keymaster

    In content-*.php you can find a single reference to the_excerpt();

    Replace that line with the code above.

    #7124
    wongsc
    Participant

    Hi 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!

    #7137
    gindavall
    Participant

    I 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.

    #10841
    SEOSlammer
    Participant

    Yay! 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.
    #10849
    Alexander
    Participant

    You 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

Viewing 15 posts - 1 through 15 (of 32 total)

You must be logged in to reply to this topic.