• Resolved amzmall

    (@amzmall)


    Hi, after I installed the “You save”, on single product page, it can only be displayed above the “add to cart button”. I want it to be displayed after the product title. What should I do? Can you help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author 10Horizons Plugins

    (@tentenbiz)

    May I know the name of the theme you are using for your site? If you don’t mind, also the URL of your site.

    Some themes and plugins can alter the order of the elements on your single product page. I know Astra theme does this out of the box, are using Astra?

    Plugin Author 10Horizons Plugins

    (@tentenbiz)

    Since there’s no reply from OP, I decided to leave this code snippet here in case somebody comes across the same issue.

    Some themes can arrange and rearrange the order of stuff on your typical Woocommerce single product page to produce their own content structure.

    For example, Astra theme removes Woocommerce template hooks that display product title, price, add to cart button etc, and then it adds its own hooks, and then it adds those Woocommerce template hooks back again.

    In this case, you can do the following:

    function thp_remove_you_save_single() {
       remove_action( 'woocommerce_single_product_summary', 'thp_ysxfw_you_save_single_product_page', 11 );
    }
    add_action( 'init', 'thp_remove_you_save_single', 100 );
    add_action( 'astra_woo_single_title_after', 'thp_ysxfw_you_save_single_product_page' );

    This removes the “You save” text from Woocommerce hook and hooks it to Astra theme’s hook just under product title.

    The same logic can be used for other themes or plugins as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot display after the title of the single product page’ is closed to new replies.