• Hello,
    i already posted inanother thread but it was already mark as “resolved”, so I’m opening a new one.

    This plugin is awesome, but I would need to show the custom labels on category pages too. I found this answer in another thread:

    You can try to add this hooks:
    If you need to output on-image label
    do_action ( 'product_of_day_before_thumbnail_widget' );

    If you need to output under image label
    do_action ( 'product_of_day_before_title_widget' );

    Output all labels that fit condtions
    do_action ( 'lgv_advanced_after_img' );

    Regards,
    Dima

    but i’m not a programmer so I would need assistance about where to exactly insert this code. Do I need to add it in a functions.php file in the child theme? Or maybe in a woocommerce file?
    Could you give me some assistance?

    Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hello,

    Normally those hooks are already in needed place. But your theme is replacing WooCommerce’s templates with own and not including hooks that should be there.

    You will need to copy woocommerce folder from your main theme to the child theme. And add one of provided above hooks to the category archive page.

    What theme are you using?

    Regards,
    Dima

    Thread Starter jasurdeury

    (@jasurdeury)

    Thank you very much for your answer.
    The theme is Legenda by 8theme.
    I’ll try with the info you provided and report back the outcome ??
    Thanks again.

    Thread Starter jasurdeury

    (@jasurdeury)

    Hi, I’ve tried but in the archive page the label (sale percetage) is showing only for the first product in the list, not for the others.
    Maybe i’m putting this code in the wrong file or in the wrong line, i don’t know.

    Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hello,

    “showing only for the first product in the list” – there could be another issue. But to tell you more I need to see it. Please provide your site url.

    Regards,
    Dima

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Label not appearing on category and archive pages’ is closed to new replies.