Code zone inside product loop

Closed
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme July 04, 2020
Login to reply
Ken Kaneki gh
1 hour ago

To display a code zone within the product loop in REHub, check Theme Options -> Ads & Code Zones. The theme has built-in parameters to inject custom HTML or banner code after a specific number of products in the loop. 


If you prefer custom hooks, you can use `woocommerce_after_shop_loop_item` inside your child theme. When injecting custom elements into repeating loop cards—similar to the dynamic grid structures on ehallpasses—make sure your injected code matches the column grid classes so it stays fully responsive on mobile screens.

Alex james
3 weeks ago

This looks like a useful feature for developers who need more control over product-loop output. Having a dedicated code zone can make it easier to add custom functionality without modifying core theme files directly. Clear documentation and practical examples would be especially helpful for understanding how the code interacts with the product loop. For businesses managing financial and accounting needs, professional resources such as this Calgary tax accounting guide can also provide useful information.

Ahmed sleiman
6 years ago

SOLVED !!!


[rh_is_category tax="product_cat" ids="1,2"]

Your code 
[/rh_is_category]
Ahmed sleiman
6 years ago

Dear I found this code (changed the meta name) in your demo. how can I make it only appear for certain product categories


<div class="border-top mb10 mt15"></div>

<ul class="font80 mb0 ml0">
<li class="ml15 list-type-disc mb0 lineheight15"><span>Minimum Salary:</span> [wpsm_custom_meta field="minimum-salary" type="attribute" show_empty=1]</li>
<li class="ml15 list-type-disc mb0  lineheight15"><span>Rewards:</span> [wpsm_custom_meta field="card-rewards" type="attribute" show_empty=1]</li>
</ul>