Home Forums WoodMart support forum Wishlist reposition on the product page

Wishlist reposition on the product page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #264815

    divit
    Participant

    Hello,

    I want to put the wishlist button after the add to cart button, because now it’s showed after the After “Add to cart button” text area and it’s too far.

    Attachments:
    You must be logged in to view attached files.
    #264888

    Hello,

    HTML structure does not allow solving it by custom CSS. Such modification requires complicated Woocommerce code customization which is not covered by our support.

    If you have any questions please feel free to contact us.

    Best Regards

    #265116

    divit
    Participant

    Ok, but can you tell me in what file is this code located?
    I can’t find where this div is: <div class=”woodmart-wishlist-btn wd-action-btn wd-wishlist-btn wd-style-text”>

    #265250

    Hello,

    Please provide your site URL, if your site is under construction, please provide your site admin access.

    Best Regards

    #265391

    divit
    Participant

    After a few hours off digging i found the file path: wp-content/themes/woodmart/inc/integrations/woocommerce/modules/wishlist/class-ui.php

    And I changed the number from 33 to 30 here:

    if ( ( woodmart_get_opt( ‘wishlist_logged’ ) && is_user_logged_in() ) || ! woodmart_get_opt( ‘wishlist_logged’ ) ) {
    add_action( ‘woocommerce_single_product_summary’, array( $this, ‘add_to_wishlist_single_btn’ ), 30 );

    Would appreciate if you can help me with a function that i can place in child functions.php, when i upgrade the theme there is no need to modify again. Thank you

    #265468

    Hello,

    If you add the code to the fundctions.php of the child theme it would remain even after the parent theme update. In any case please make the full backup of your site before each update.

    Best Regards

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