• ricketts8

    (@ricketts8)


    Hey,

    Have found some instructions for site-wide thumbnails but I don’t want that. I just want thumbnails on my Category Archive pages. Any instructions for that?

    Not afraid of php and child themes and all that.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Michael

    (@alchymyth)

    make a loop-category.php (simply copy loop.php) and add the thumbnail code there (and remove the unneccessary code).

    and yes, creating a child theme might be a good idea.

    Thread Starter ricketts8

    (@ricketts8)

    That certainly sounds doable. Can you give some specifics? What you mean by the “thumbnail code,” what’s the “unnecessary code”?

    Michael

    (@alchymyth)

    Have found some instructions for site-wide thumbnails

    this sounds as of you already have some tutorials (?)

    if you define in more detail, how and where you want to have the post thumbnail in the category archive, someone might be able to help further.

    unneccessary code:
    there are some conditional sections in loop.php to make it universal – you won’t need most of them if you make this special for categories.

    Thread Starter ricketts8

    (@ricketts8)

    I have the Twenty-Ten Theme…

    I will use a few Category Archive pages in the menu…

    Those archives spit out a page listing the posts filed to that category, each listing includes the post title, bit of meta, and an excerpt.

    I want a thumbnail left aligned with each excerpt. That’s the only place I want thumbnails on the entire site.

    …and yes, I have some tutorials and I can trial and error this stuff using Firebug or Google Dev Tools but I’m far from an expert.

    Thread Starter ricketts8

    (@ricketts8)

    https://www.avclub.com/channels/music/ … so something that looks like that

    Michael

    (@alchymyth)

    something to start with:

    https://wordpress.pastebin.com/wx8siy6a

    Thread Starter ricketts8

    (@ricketts8)

    So, are lines 16-21 all that should be in the loop-category.php?

    Michael

    (@alchymyth)

    no – they just replace the lines that i posted at the beginning of the pastebin.

    you can obviously delete as much or as little as you want.

    i know, there is more conditional stuff, but i don’t know if you might be needing this.

    this is just a start, once you have something to show, you can link to your site for the fine tweaking.

    Thread Starter ricketts8

    (@ricketts8)

    Got ya.

    Okay. Did the first step and it’s spitting out thumbnails just on the archives page. Great first step. Have to jet for a bit but will check in later.

    Thanks.

    Thread Starter ricketts8

    (@ricketts8)

    Hmmm,

    Having some issues with sizing.

    I know I have to re-upload the image to get the image to resize but the image showing is resized, yes, but it’s half the image at full resolution instead of resized.

    Haven’t done any CSS yet.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Twenty-Ten Category Archive Thumbnails’ is closed to new replies.