In Your plugin I noticed a feature in “Automatic” tab called “Auto set featured image using post title and search engine”. I wonder if I can use this plugin to auto search on for product image on Google, DuckDuck Go etc. and get image from first result in images tab. If not, please reply which search engines are compatible with Your plugin.
Cheers,
Michael
]]>add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
css:
figure.woocommerce-product-gallery__wrapper {
margin: 0;
}
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
I have cleared cache and tried re-uploading functions.php/style.css to no avail. Sample of issue can be seen here:
https://visitmathews.com/lodging-in-mathews-va/3-bedroom-homes-and-cottages/reflections-chesapeake-bay-getaway/
Thanks for any insight you can provide.
]]>It seems tat this plugin is doing nothing that we cannot do manually, but I might be wrong, do you have any feedback ?
https://woocommerce.com/products/seo-friendly-images/
Thank you.
]]>Since I stumbled into this yesterday and found no informations around after much googling, I thought it would be good to share my experience and the solution to this issue.
I run Parabola theme together with Wwoocommerce plugin, and after some tweaking around I’ve reached a decent degree of compatibility between the 2. I had but last issue to get solved.
As you have probably already noticed, Parabola theme wraps the Featured image you set inside the article inside a link to that article. Meaning that if you click the image, you reload that article.
Now: Woocommerce ( I am using Version 2.3.8 – latest so far) tends to wrap featured images (which are set as Products’ images) and gallery images inside the prettyPhoto gallery tool which is a sort of lightbox-like gallery to nicely preview all images inside that product page.
Obviously the Featured image did not get wrapped inside prettyPhoto tag due to the above mentioned Parabola’s behaviour.
The solution is pretty simple:
you just have to uncomment putting // just before where it says $html = '<a href="' . get_permalink( $post_id ) . '"
(second line here) inside parabola/includes/theme-loop.php found at the bottom of the php file or just copy-paste this code down here.
/**
* The thumbnail gets a link to the post's page
*/
function parabola_thumbnail_link( $html, $post_id, $post_image_id ) {
// $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
return $html;
}; // parabola_thumbnail_link()
]]>FacetWP code:
<ul class="products">
<?php while ( have_posts() ) : the_post(); ?>
<li><?php the_post_thumbnail(); ?></li>
<?php endwhile; ?>
</ul>
DFI code for one of my WC tags (I have several of these):
function dfi_tag_gameon ( $dfi_id, $post_id ) {
if ( has_term( 'game-on', 'product_tag', $product ) ){
return 1155; // the image id
}
return $dfi_id; // the original featured image id
}
add_filter( 'dfi_thumbnail_id', 'dfi_tag_gameon', 10 , 2 );
https://www.ads-software.com/plugins/default-featured-image/
]]>Is it possible to replace product images in the ‘Shop’ page with a short code?
This is a pre-purchase question.
Thanks,
Harish
]]>