Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1234411

    Hi, I have 2 questions, first where can I go to change the “show details” button on woo products. I want to change the text.

    Second, I want all my columns to be equal height, I know I need to set a min height, but can’t seem to find the div. Attached is a screenshot of the two issues.

    Thanks

    #1234973

    Bump Bump

    #1235013

    Hi,

    Thank you for the inquiry.

    You can modify the “show details” text by editing the avia_add_cart_button function in the themes\enfold\config-woocommerce\config.php file directly. You can also remove the current hook..

    remove_action( 'woocommerce_after_shop_loop_item', 'avia_add_cart_button', 16);
    

    .. then add your own using the same function.

    add_action( 'woocommerce_after_shop_loop_item', 'avia_add_cart_button_mod', 16);
    function avia_add_cart_button_mod() {
      // same code with a bit of modification
    }
    

    Best regards,
    Ismael

    #1235203

    Hi, thank you, do I add this to my functions?

    Also, I don’t want to remove the text, I just want to edit the text so it says something different.

    #1235967

    Hi,

    Thank you for the update.

    Yes, you have to copy the whole content of the avia_add_cart_button function from the said file and place it inside the new function avia_add_cart_button_mod. The text that you’re looking for is located in this line:

    
    		$output .= '<a class="button show_details_button" href="'.get_permalink($product->get_id()).'"><span '.av_icon_string("details").'></span>  '.__("Show Details","avia_framework").'</a>';
    

    Best regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.