Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>But what is this? Where does it come from?? Is there any clue in the action name as to where I could locate the HTML being generated for the purpose of editing it?</p> </blockquote> <p>This is an <code>action hook</code>. It isn't doing anything by itself per say, but the functions listed in the comments <code>hook</code> into it and therefore run when this function is triggered. It says in the comments that function <code>woocommerce_template_loop_product_thumbnail</code> is the function responsible for getting the thumbnail. You can find this function inside the Woocommerce plugin. I use the Sublime Text editor (though I think others will do this too) to search the whole folder for that phrase and it tells me exactly what file it is in. In this case it is what is called a pluggable function and is located in <code>woocommerce-template.php</code>. (It's now called wc-template-hooks.php in version 2.1+)</p> <p>A pluggable function means that you define a new version of the function with the same name in your theme's functions.php</p> <pre><code>function woocommerce_template_loop_product_thumbnail(){ echo "apple"; } </code></pre> <p>If you put the above in your functions.php then instead of Woo's <code>woocommerce_template_loop_product_thumbnail()</code> you'd merely see the word apple. </p> <blockquote> <p>I've read the article on 'hooks and filters' on WooCommerce, but it explains nothing regarding where or how to change these on a case for case basis.</p> </blockquote> <p>You will make all changes in your theme's functions.php and a case by case basis isn't necessary. All hooks and filters behave the same. That said, they aren't the easiest thing to learn so have patience with yourself. I found filters to be especially tough to wrap my head around.</p> <p>In a spot of gratuitous self-promotion I wrote a series of articles on the <a href="http://www.kathyisawesome.com/category/basics-2/">basics of WordPress hooks and filters</a> (one article says it is for Thematic hooks, but a hook is a hook! ) that are all the things I wish people had told me at the beginning of my WordPress career.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload