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*

Set Blog display to Medium on Category page

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22814
    Greyhare
    Participant

    I have set up several Categories to the menu to show list of certain Categories of posts. They seem to be showing as ‘Blog Image Large’ – how do I change to ‘Blog image Medium’? Alternatively, can I create a page to show certain category of posts in the ‘Blog Image Medium’ layout – is there a shortcode for that?

    #22837
    Yasmin
    Participant

    I’d like to know the answer to this too.

    #22890

    Hi all,

    There is no any shortcode for it. To have a blog image medium in your category page it needs code customization. The blog image large is our default blog post.
    Go to theme folder(interface-pro)-> inc-> structure-> content-extension.php on line no 125 you will find this code.
    $image .= get_the_post_thumbnail( $post->ID, 'featured', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>';

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

    Then your category will be displayed in the blog image medium. Before making any changes in the code first of all create a child theme and then unhook the functions and customize the code to be safe from data loss while updating to our new version.

    Thank you!

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