Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1146524

    Hi all, i’ve been working on it but it doesn’t seem to display on the archive/shop products page.
    I’ve downloaded the plugin advanced custom field and put some new fields on it example: Actieradius.

    The follow code i’ve coded it on my child theme functions.php

    add_action( ‘woocommerce_after_shop_loop_item’, ‘actieradius_woocommerce_product_excerpt’, 12 );

    function actieradius_woocommerce_product_excerpt() {
    global $post;
    if ( is_home() || is_shop() || is_product_category() || is_product_tag() ) {
    echo ‘<div class=”specs-item-block”>’;
    echo get_post_meta( $post->ID, ‘actieradius’, true );
    echo ‘</div>’;
    }
    }

    Please help if you can.

    #1147091

    Hey peruwan,

    Thank you for the inquiry.

    The custom container is actually added right after the product title.

    
    <div class="specs-item-block">
    <div class="specs-item-data">40 min</div>
    <div class="specs-item-header">snelladen</div>
    </div>
    

    Is that what you’re after?

    Best regards,
    Ismael

    #1147278

    No but i’ve done the work myself hahah thanks anyways. You can close/delete this one,

    #1147279

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.