WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to wrap text around images in excerpts? (8 posts)

  1. fashionhotbox
    Member
    Posted 1 year ago #

    Hi,

    I am having a couple problems:

    1. I can't get my post thumbnails to show up in the category archives page, but they do show up in the search/archives. So for example, if I search something on my website a list of excerpts of posts will come up, with the featured image. However, if I click on one of the categories at the top of my website (aka "stalk my style" or "trending"), there is no featured image next to any posts that show up for. Sorry if that was a bad explanation...but how do I fix this? I don't have a category.php page, only an archive.php page, so I've only added

    <?php the_post_thumbnail();?>

    to the archive.php page.

    2. I can't figure out how to make the text wrap around the featured image in the post exercepts. I tried adding

    .post-thumb {float: left;}

    to style.css and it didn't work. I also tried adding

    .postthumb {
    display:block;
    float:left;
    margin:10px 10px 10px 0px;
    }

    to the style.css and it didn't work.

    Any suggestions?? I'm feeling at a loss here.

    P.S. here is my website link: Fashion HotBox

  2. deepbevel
    Member
    Posted 1 year ago #

    In firebug the img class shows as

    .attachment-post-thumbnail wp-post-image
  3. fashionhotbox
    Member
    Posted 1 year ago #

    I'm sorry, I'm not familiar with firebug...where do I put that code?

  4. deepbevel
    Member
    Posted 1 year ago #

    it's css, try it as a selector, use with the pprevious code you posted instead of or in addition to .postthumb.

    You should get familiar with a web page inspector tool like firebug, which is a free plug in for mozilla firefox.

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The other thing you REALLY should be doing is using a child theme -- as is, all of your changes to the theme files are going to be overwritten when the theme is updated.

    See this:

    http://codex.wordpress.org/Child_Themes

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You may also want to contact the theme vendor for help -- commercial themes are not generally supported here as it's part of what you pay for.

    http://idesigneco.com/support

  7. deepbevel
    Member
    Posted 1 year ago #

    yes, it will be more difficult otherwise, premium themes often have less obvious structures, like the issue with your lack of a category page, yet no ability to effect changes to categories via archives.php.
    And if you don't use a child theme, at least be sure to make all changes at the bottom of the style sheet, add new code rather than changing the original.

  8. fashionhotbox
    Member
    Posted 1 year ago #

    Thank you both--I appreciate your help! I will contact my theme vendor.

Topic Closed

This topic has been closed to new replies.

About this Topic