Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14270

    Hi

    I want to add a line of code under the price on this page

    I want the badge to appear here > http://www.headphonehub.co.uk/wp-content/uploads/2012/07/Screen-Shot-2012-07-12-at-18.211.jpg

    heres what the page currently looks like > http://www.headphonehub.co.uk/shop/sennheiser-mx170-ear-bud-earphones-black/

    I can’t seem to find the location to place the line of code? any ideas where to find it?

    Thanks

    #82746

    Hi,

    It is included on the .title_container div so you can find it on woocommerce-config > config.php. Find this code.

    function avia_woocommerce_advanced_title()
    {
    global $wp_query;
    $titleClass = "";
    $image = "";
    if(isset($wp_query->query_vars['taxonomy']))
    {
    $term = get_term_by( 'slug', get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']);
    $attachment_id = get_woocommerce_term_meta($term->term_id, 'thumbnail_id');
    if(!empty($term->description)) $titleClass .= "title_container_description ";
    }

    if(!empty($attachment_id))
    {
    $titleClass .= "title_container_image ";
    $image = wp_get_attachment_image( $attachment_id, 'thumbnail', false, array('class'=>'category_thumb'));
    }

    echo "<div class='title_container $titleClass'>";
    echo avia_breadcrumbs();
    woocommerce_catalog_ordering();
    echo $image;
    }

    Regards,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘adding badge image under price on single product pages’ is closed to new replies.