Dana S
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] Remove first image in all product galleriesThanks again David! You’ve exceeded my expectations with your wonderful support and plugin! Not only did you resolve my topic, but You’ve went out of your way to provide me with tools to achieve my goals with the website in question and more.
Thanks again David! You’ve exceeded my expectations with your wonderful support and plugin! Not only did you resolve my topic, but You’ve went out of your way to provide me with tools to achieve my goals with the website in question and more.
The support you’ve provided already is exceptional; Thank You! I will contact you with answers to your questions via the information provided and see if there is a simple fix for what I’m trying to do.
Thanks for your reply ??
I took a look at your references, but I’m not sure if they are what I’m looking for; they might be, but I just need to familiarize myself better with the terminology.
I went to the plugin area (IPTC & EXIF Processing Options). For the alt and title field names, I chose (2#015 category). I chose “replace” existing text for both fields. I saved the settings. Then I pressed the “Map All Attachments, Standard Fields Now” button. Neither the title nor alt tags for images changed. I assuming there was no change, because “categories” isn’t referencing “product categories”.
I know your busy, but if you’re interested I let you log into my wordpress site. I’m not sure how to pm you, but let me know and I can send you login details of my wordpress site.
Further information:
My images have regular tags that aren’t dependant on any plugin. All my images have the image name (example.jpg) for the image Meta title. All alt fields are blank. I have considered several ways to place the product category as the alt tag, but the easiest thing to do seems to be figuring out what code/page is responsible for grabbing the alt tag. If I can isolate that code, maybe I could force the alt tag to use the product page meta title or category, instead of referencing the meta alt/title inputted in the media library.
For example, the following code (in wp-content/…/…/woocommerce/single-product/meta.php) is responsible for display the products category on any given product page:<?php $size = sizeof( get_the_terms( $post->ID, 'product_cat' ) ); echo $product->get_categories( ', ', '<span class="posted_in">' . _n( '', '', $size, 'woocommerce' ) . ' ', '.</span>' ); ?>
If I could just find what code is responsible for the product image alt tag, maybe I could do something like this:
alt=”<?php $size = sizeof( get_the_terms( $post->ID, 'product_cat' ) ); echo $product->get_categories( ', ', '<span class="posted_in">' . _n( '', '', $size, 'woocommerce' ) . ' ', '.</span>' ); ?>”
I can tell that your plugin is capable of achieving what I’m hoping for, but maybe I just need to spend more time with it. Thanks ??