Skip to content
Public Ticket #5340

Single Post

Conversation thread

Penci Design replied

Staff Reply

Hi,

\

Please install and active "Penci Custom Content Width" plugin attachment.

\

then add image , choose size image  you want as screenshot http://prntscr.com/li59kj

Best Regards,

PenciDesign

Muhammad Jahangir replied

Customer Reply

Hi,

ok now i got your point so how can i display there medium_large image with theme code no need my own code. can you modified this code to display medium_large image,

<?php\ penci_render_google_adsense( 'penci_single_ad_before_content' );\ the_content( sprintf(\ wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'pennews' ), array( 'span' => array( 'class' => array() ) ) ),\ the_title( '<span class="screen-reader-text">"', '"</span>', false )\ ) );

\

wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'pennews' ), 'after' => '</div>', ) );\ penci_render_google_adsense( 'penci_single_ad_after_content' );\ ?>

Thanks

PenciDesign replied

Staff Reply

Hi,

For any theme - It can't auto load medium_large image - we need to use image sizes from the theme.

medium_large size is the size from Wordpress itself. And customers can change it to any other size their want - that will make the theme display not look good on all other places.

You can try with any other premium Wordpress theme - no any theme use medium_large size on the single post page.

Best Regards,

PenciDesign

Muhammad Jahangir replied

Customer Reply

Hi,

i removed your code from entry-content.php file

<?php
penci_render_google_adsense( 'penci_single_ad_before_content' );
the_content( sprintf(
wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'pennews' ), array( 'span' => array( 'class' => array() ) ) ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
) );

\

wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'pennews' ), 'after' => '</div>', ) );
penci_render_google_adsense( 'penci_single_ad_after_content' );
?>

then i repalce my code 

<a href="<?php echo $large_image_url[0];?>" title="<?php the_title();?>" target="_blank"> <?php the_post_thumbnail('medium_large', array('class'=>'img-responsive img-thumbnail'));?></a>

that's why its working but why in your code not getting medium_large image ?

thanks

Muhammad Jahangir replied

Customer Reply

Hello,

it's not resolve my issue why there not getting auto medium_large image ? in localhost server work fine but in webhosting server making issue why?

thanks

Muhammad Jahangir started the conversation

Conversation Start

Hi Dear Sir,

i am using your theme i face one issue i have meduim large images on server but single post not getting medium large image 768x0 which is create default medium_large image wordpress so how can i fix it ?

https://wallpapergun.com/1920x1200-birds-of-paradise-wallpapers-9/

http://myprintscreen.com/s/y7rs/6626f6361b

this only example one link but all there post getting full image i want to showing there mideum_large image 768x0 how can i do that?

Thanks

Want to join this conversation or access attachments? Sign in first.