badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Morten

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Help with image size of archives (categories) #20147
    Morten
    Participant

    You can make the thumbnails smal for the archive page if you edit the file content-extensions.php (it is in the folder “structure”).

    Here you locate archive loop (attitude_theloop_for_archive) and change featured to featured-medium – like this:

    $image .= get_the_post_thumbnail( $post->ID, ‘featured’, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ) ) ).’‘;
    $image .= ‘</figure>’;

    To this:

    $image .= get_the_post_thumbnail( $post->ID, ‘featured-medium’, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ) ) ).’‘;
    $image .= ‘</figure>’;

    Aftewards you edit your style.css with this:

    .post-featured-image {
    float: left;
    margin-bottom: 30px;
    margin-right: 4.67%;
    max-width: 700px;
    width: 20%;
    }
    And you will see that the large featured image in the archive page now is a small thumbnail and placed at the left.

    Cheers
    Morten

Viewing 1 post (of 1 total)