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*

Blog post image display large in category page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46249
    RWM2718
    Participant

    Blog post image display large in category page . Sir please help me.
    here is link

    #46251
    RWM2718
    Participant

    i want to display medium image on category, such as it display in homepage.

    #46304

    Hi RWM2718,
    Our default is blog image large. So blog image medium will not work for category. It needs some code customziation. Go to theme folder -> library -> functions -> functions.php -> content-extensio.php on line no 384 you will find below code

    $image .= get_the_post_thumbnail( $post->ID, 'featured', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>';
    replace with
    $image .= get_the_post_thumbnail( $post->ID, 'featured-medium', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>';

    We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.

    http://codex.wordpress.org/Child_Themes

    Thank you

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