Hello,
Sorry for the delay.
Have you already tried the possible values on the Position on Single option? on Buttons section?
@karzin hi,i’ve tried this four option,no the position i want
how can i customized the position?
thanks
Actually there is a option on the premium version for that.
But if you want I can try to help you with a custom code in order to specify some other position.
Just let me know what you prefer 😉
@karzin thanks,i may not try premium version now for my site is small at begain
i’ll appreciate your custom code help,so how to do this?
Ok, no problem.
So here it is:
function override_button_position_single( $position ){
$position = 'the-position-you-want';
return $position;
}
$option_name = Alg_WC_Wish_List_Settings_Buttons::OPTION_DEFAULT_BTN_SINGLE_POSITION;
add_filter( "option_{$option_name}", 'override_button_position_single' );
Hi @losvincent ,
Did it work for you
@karzin hi,thanks for your code.i’ve tried $position = ‘add-to-cart’ and =’After add to cart button’,it not works
i don’t know what should i set in $position = ‘the-position-you-want’;
Hello @losvincent ,
These are some positions I know it could work. Please try all of them and let me know:
– woocommerce_before_single_product
– woocommerce_before_single_product_summary
– woocommerce_single_product_summary
– woocommerce_after_single_product_summary
– woocommerce_after_single_product
Try to change the priority too