challahan
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Doc Embedder] Trouble with URL Shortcode when executing from templateIn case anyone runs into this, I figured it out. I changed the code to:
<?php if( get_field('document_file_upload') ):?> <?php $document = get_field('document_file_upload');?> <?php echo do_shortcode( '[gview file="'.$document.'"]' ); ?> <?php endif; ?>
Forum: Plugins
In reply to: [RICG Responsive Images] Featured Image Crop SizesThanks! It definitely was a caching issue. I opened in a new browser and it worked fine. This probably wouldn’t happen in real-world usage I’m guessing anyway. Thank you so much for your help!
Chris H.
Forum: Plugins
In reply to: [RICG Responsive Images] Featured Image Crop SizesSorry about that! I had deactivated it temporarily.
Verified the plugin is working. I uploaded a new image to make sure it wasn’t that – the responsive images are still not swapping though unfortunately.
https://ideabasekent.com/staging/slo/production/using-the-library/
Images:
https://ideabasekent.com/staging/slo/production/wp-content/uploads/Heersmall-1000×200.jpg
https://ideabasekent.com/staging/slo/production/wp-content/uploads/Heersmall-800×160.jpgForum: Plugins
In reply to: [RICG Responsive Images] Featured Image Crop SizesOk I’ve tried exactly your first suggestion (aspect ratio), but it doesn’t seem to be swapping the smaller for the large one. Only the larger one displays.
I have this up on a development page: https://ideabasekent.com/staging/slo/production/using-the-library/
Two crops are being created with:
add_image_size('feature-banner', 1000, 200, true); add_image_size('feature-banner-small', 800, 160, true);
The two images created are at:
https://ideabasekent.com/staging/slo/production/wp-content/uploads/Harbourtsmall-1000×200.jpg
https://ideabasekent.com/staging/slo/production/wp-content/uploads/Harbourtsmall-800×160.jpgI’m using this in my theme:
echo the_post_thumbnail('feature-banner');
— using the larger one as the default size.