ThemeShaper Forums » Thematic

[closed]

Changing index/archives

(9 posts)
  • Started 2 years ago by PaulMurray
  • Latest reply from PaulMurray
  • This topic is not resolved

Tags:

  1. PaulMurray
    Member

    Hello, I'm new to Thematic and am having trouble getting my head around something.

    I'm looking to change my index page and archives (both of which display excerpts with thumbnails) so that the post thumbnail is position to the left of the title, meta and excerpt. Basically I want all the text to be to the right of the thumbnail and not have the title and meta before/above the thumbnail as seems to be the default.

    I don't think I can do this through CSS as the thumbnail is placed inside a div with the excerpt by default. I understand that I'll need to write a function that creates the post with the elements in the order I want, but I'm confused as to which filter I need to be looking at.
    Should I be filtering thematic_content() or a different one? Am I even going about this the correct way?

    Thanks

    Posted 2 years ago #
  2. fwunder
    Member

    Hi. I'm new too but this seems to work for me in child css:


    .entry-content .wp-post-image {
    float: left;
    }

    adjust (negative) margins and padding accordingly...I think

    Posted 2 years ago #
  3. fwunder
    Member

    Woops! I'll shut up now. I see what you are saying about the container constraint. Maybe a z-index, position absolute thing?

    Posted 2 years ago #
  4. PaulMurray
    Member

    Thanks for the reply, but that simply aligns the image to the left (which I want) but I also want the title and other text aligned to the right inline with the image, like I have in my current theme - http://www.paulmurraydesign.com/blog-2

    Because the image is placed inside a div I can't really place it where I want it with CSS so I think I'm gonna have to write a function that creates the post with the image before the other content.

    Posted 2 years ago #
  5. sounds like you want to filter thematic_post() (a filter that is somewhat confusingly in the thematic_content() function) in the case of excerpts

    Posted 2 years ago #
  6. PaulMurray
    Member

    Thanks, Helga, I'll have a play around :)

    Posted 2 years ago #
  7. PaulMurray
    Member

    Ok, I my lack of PHP knowledge is totally letting me down here. I've been reading through every single tutorial I can find on the subject but I'm completely stumped as to where to start with this function.

    I think I found where the thematic_post() function is created within thematic_content() inside content-extensions.php, but I'm now at a loss as to how to filter this function and recreate the posts with the individual elements in the order I want.

    Any chance you can point me in the right direction?

    Posted 2 years ago #
  8. how to filter anything, anywhere is always the same. variable in to your function, manipulate, send modified value to filter.

    my tutorial:

    http://forums.themeshaper.com/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638

    i think my explanation is quite good, but i lack the proper perspective too. so you'll notice on the thread that there is some discussion about what is still unclear from the newbie perspective. hopefully you can participate.

    Posted 2 years ago #
  9. PaulMurray
    Member

    Thanks again, that post certainly made things much clearer :)

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.