• Resolved wrightj999

    (@wrightj999)


    Hello,

    I need to set the length of an excerpt of a post (how much you can read before having to click into the post to read the rest). Right now it is showing the whole post for my most recent blog post, I would like to shorten this. I am also having an issue with the way the thumbnail displays. It looks great in the post, but outside of it.. it is kind of off center and cropped. I can’t seem to find where to make adjustments to these things in the dashboard.

    Here is a link to the page:
    https://www.wholeaf.com/sample-page/

    (this url brings another question up, where do I change the page title label? I would like to have something other than “sample-page” in there, like “wholeaf blog”.)

    This is the only posting I have made so far. I want to format it to my liking… HELP!!

Viewing 15 replies - 1 through 15 (of 23 total)
  • I would like to shorten this.

    Use the <!--more--> tag in your posts where you want the post teaser to end. See Customizing_the_Read_More.

    it is kind of off center and cropped.

    If you are not altering the image’s dimensions via the editor, then this would seem to be an artefact of your theme. All images are being set to 250px by 200px. Temporarily switching to the Twenty Eleven theme would help to confirm this.

    where do I change the page title label?

    Edit Page then select Edit next to the Page’s permalink (just under the Page Title).

    Thread Starter wrightj999

    (@wrightj999)

    Ahh awesome, the <!–more–> tag worked beautifully! This will be a key thing for me to know.

    Changing the pages permalink also was very easy, thanks for pointing out where to do that. I’m pretty fresh to wordpress dev.

    As far as the image, all I have done is uploaded it to the media library and then inserted it into the post as a medium size image (from the presets). so it looks exactly the way I intended in the post, but the formatting is crap on the excerpt.

    Testing out 2010 theme:
    The only 2010 theme I have available is the 2010 (1.2) version, so I also tried the 2011 (1.2) and both of these themes do not feature a thumbnail image in post excerpts (unless there is a way to turn this on that I am missing.)

    So thanks for the help man! I just need to find a solution for this thumbnail image issue and I will be doing nicely ??

    Thread Starter wrightj999

    (@wrightj999)

    When you refer to it being an artefact… does that mean that it’s a mistake, or bug in the themes design/code?

    I’d guess that it’s the way in which the theme has been designed to work. Have you read all of the documentation that relates to the theme?

    Thread Starter wrightj999

    (@wrightj999)

    eh, there wasn’t much in the way of documentation that came with it, it was somewhat barebones. I wonder if there is anything I can do in the actual code to change that. I had another thought.. I wonder if the cause of this is that the original image is more of a rectangle shape, as I cropped the image before applying it as a store image icon, then I re-purposed the image to also use it in a post. I wonder if I re-export the original image with more white space above and below the leaf, and give it a square shape, if it will format correctly… that’s an awful lot of work for one image, but hey. Maybe I just need to pick a different theme. If I was to try to access the code to make a change of this, do you know which .css rule I should look for?

    The CSS is being added directly to the page markup – which is why I think it’s part of your theme’s custom options or configuration.

    Thread Starter wrightj999

    (@wrightj999)

    right… the css is in-line then. Hmm. Unfortunately this theme does not have much in the way of custom options or configuration. I guess you get what you pay for with the free themes, even though I have seen free themes with better configuration options available thru the dashboard.. this one in particular had the layout I was looking for.

    Perhaps I should spend just a tad bit of scrilla on a paid theme and get it over with?

    Thread Starter wrightj999

    (@wrightj999)

    well I don’t think that the main css file had anything in it, haha.

    Or you could try delving into the theme’s code and see where this inline CSS is being added.

    Thread Starter wrightj999

    (@wrightj999)

    yeah I’m gonna look there next.
    Which one of these pages do you think I should look under? Or should I just check them all?

    404 Template
    (404.php)
    Archives
    (archive.php)
    Archives Page Template
    (archives.php)
    Comments
    (comments.php)
    Footer
    (footer.php)
    Header
    (header.php)
    Image Attachment Template
    (image.php)
    Links Page Template
    (links.php)
    Main Index Template
    (index.php)
    Page Comment Page Template
    (page-comment.php)
    Page Template
    (page.php)
    Search Form
    (searchform.php)
    Search Results
    (search.php)
    Sidebar
    (sidebar.php)
    Single Post
    (single.php)
    Theme Functions
    (functions.php)
    theme-options.php
    (theme-options.php)

    If it was me. I’d start by looking at functions.php and possibly theme-options.php

    Thread Starter wrightj999

    (@wrightj999)

    thanks, I will look in those places.

    Thread Starter wrightj999

    (@wrightj999)

    There is a bunch of CSS code in the functions.php page, but I didn’t notice anything that I thought would affect that area… even though I am no pro at this, so I am going to post the code to see if you can recognize anything:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter wrightj999

    (@wrightj999)

    Hey I think I may have found something!! It was in the main index template:

    if(!empty($inis)): ?>
    <div class=”lastimage pik” style=”background: url(<?php echo $inis; ?>) center top no-repeat; width: 250px; height:200px; border: 1px solid #777;”>
    </div>

    These seem to be the dimensions you had mentioned earlier, u think there is any relation? Maybe I could just make an adjustment and see.

    Thread Starter wrightj999

    (@wrightj999)

    okay, it did work. I increased the width to 275 and more of the image is showing. But it still is kinda not centered vertically. So maybe I need to make sure all my images have a square aspect ratio and they will center vertically?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Excerpt Length and Thumbnail image format’ is closed to new replies.