Tagged: x
-
AuthorPosts
-
January 25, 2017 at 4:24 am #1344463
Paul RModeratorHi,
It’s best to crop the images to your desired size using an image editor like photoshop before uploading it to your site.
Thanks
January 25, 2017 at 12:22 pm #1345050
patrickgParticipantThe images were created at 1200×450. But obviously they aren’t appearing that way and something is distorting their quality. What should I be uploading at instead? Keep in mind that I don’t want to increase the height ratio if possible.
January 25, 2017 at 5:43 pm #1345451
RadModeratorHi there,
You can stay with your preferred size, but let’s do this change first. Please add this code to your child theme’s functions.php
function x_featured_image( $cropped = '' ) { $stack = x_get_stack(); $fullwidth = ( in_array( 'x-full-width-active', get_body_class() ) ) ? true : false; if ( has_post_thumbnail() ) { if ( $cropped == 'cropped' ) { if ( $fullwidth ) { $thumb = get_the_post_thumbnail( NULL, 'entry-cropped-fullwidth', NULL ); } else { $thumb = get_the_post_thumbnail( NULL, 'entry-cropped', NULL ); } } else { if ( $fullwidth ) { $thumb = get_the_post_thumbnail( NULL, 'entry-fullwidth', NULL ); } else { $thumb = get_the_post_thumbnail( NULL, 'entry', NULL ); } } switch ( is_singular() ) { case true: printf( '<div class="entry-thumb">%s</div>', get_the_post_thumbnail( NULL, 'full', NULL ) ); break; case false: printf( '<a href="%1$s" class="entry-thumb" title="%2$s">%3$s</a>', esc_url( get_permalink() ), esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ), $thumb ); break; } } }This should display the original image that you uploaded regardless of size.
Thanks!
January 26, 2017 at 9:09 am #1346394
patrickgParticipantFantastic! That did it. I haven’t been able to find any downsides from this adjustment but is there anything I should be worried about that the change would affect on posts from years ago?
January 26, 2017 at 10:38 am #1346534
JoaoModeratorHi There,
As long as the changes are made on your Child Theme there is nothing to worry about.
Thanks
Joao
January 29, 2017 at 4:42 pm #1349937
patrickgParticipantI discoverd that somewhere along this thread the images stopped showing up on my blog page of the website. Here’s the link:
https://www.bourbonbanter.com/bourbonblog/#.WI5uj7YrJR4
Previously each post had an image, title and paragraph that I set in the post page itself. But now the featured image isn’t showing anymore.
How do we restore the images to this page?
January 29, 2017 at 10:50 pm #1350252
RadModeratorHi there,
It’s because of this code added to customizer’s custom javascript.
(function($){ $('.x-main .entry-featured').remove(); })(jQuery);Please remove it.
Thanks!
January 30, 2017 at 2:36 pm #1351324
patrickgParticipantI removed the code as directed but the images are not showing up yet: https://www.bourbonbanter.com/bourbonblog/#.WI-jWmQrJ-
Any other recommendations?January 30, 2017 at 11:31 pm #1351808
ChristopherModeratorHi there,
Please find and remove this code from customizer :
.x-main .entry-featured { display: none!important; }Hope it helps.
January 31, 2017 at 9:15 pm #1353130
patrickgParticipantIf I remove that code I wind up back with double header images on my blog posts.
February 1, 2017 at 2:20 am #1353335
Paul RModeratorHi,
Please remove this code in your custom css as well.
.x-main .entry-featured { display: none!important; }Thanks
February 1, 2017 at 1:10 pm #1354103
patrickgParticipantPaul, that is the same instruction given by Christopher that I said created a double-header image on individual blog posts. (see attached). Removing it in the Customizer > Edit Global CSS fixes the blog feed page ( https://www.bourbonbanter.com/bourbonblog/#.WJIyo2QrKWY
) but creates double header images on individual post pages as illustrated in the attached.So my question is, how do we fix the feed page but not create double headers?
February 1, 2017 at 7:26 pm #1354590
LelyModeratorHello There,
Please update that CSS to this instead:
body:not(.blog) .x-main .entry-featured { display: none!important; }That CSS will exclude the blog archive page but then hide the featured image on single post page.
Hope this helps.
February 2, 2017 at 7:38 am #1355172
patrickgParticipantThat seems to have done the trick. Thank you!
February 2, 2017 at 10:25 am #1355395
JoaoModeratorGlad to hear it,
Cheers
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1311799 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
