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*

Category page featured images

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23577
    jotv73
    Participant

    Thank you for the great theme. I have a quick question. I set my blog layout page to display the excerpt and the medium image next to the text. But when I go to the category page, the featured image is placed above the text and since I made the featured image thumbnail size, it shows as a small picture with lots of empty space around it on the category page. (I hope this makes sense).

    Is there any way to have the category page set up the same way that the blog page is? If not, could you tell me how to change it in the style sheet?

    Thanks so much!

    #23632

    Hi jotv73,

    Go to Appearance -> Theme Options -> Design Options Tab -> Custom CSS paste the following CSS code and Click on save all changes button:

    .category .post-featured-image {
    float: left;
    margin-right: 4.67%;
    margin-bottom: 22px;
    }

    After doing it go to theme folder-> library-> functions-> functions.php on line no 376 and replace this code $image .= get_the_post_thumbnail( $post->ID, 'featured', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>'; with `$image .= get_the_post_thumbnail( $post->ID, ‘featured-medium’, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ) ) ).'</a>’;

    Before making any changes in the code first of all create a child theme then only customize the code. Because if you update to our new version you customized code will be lost, if you didn’t make any child theme.

    Thank you!`

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.