Replace quick view text to a magnify icon
-
This code doesn’t work for me
add_filter( 'woosq_button_html', 'woosq_custom_quick_view_btn', 99, 2 ); function woosq_custom_quick_view_btn( $output, $product_id ) { $button_text = get_option( 'woosq_button_text' ); if ( empty( $button_text ) ) { $button_text = esc_html__( 'Quick view', 'woosq' ); } $output = '<a href="' . get_permalink( $product_id ) . '" class="woosq-btn woosq-btn-' . esc_attr( $product_id ) . ' ' . get_option( 'woosq_button_class' ) . '" data-id="' . esc_attr( $product_id ) . '" data-effect="' . esc_attr( get_option( 'woosq_effect', 'mfp-3d-unfold' ) ) . '"><i class="far fa-eye"></i><span>' . esc_html( $button_text ) . '</span></a>'; return $output; }
I’m using WP page builder framework theme. Site which has the issue https://ibb.co/mNjzyx2
- The topic ‘Replace quick view text to a magnify icon’ is closed to new replies.