• Resolved yannyann

    (@yannyann)


    How do I change the text of button (select option) on floating Bar in single product page by adding code in functions.php?

    Like this below:

    Thank you for your time to read

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter yannyann

    (@yannyann)

    Hello, after viewing the source code, I wrote this code by myself and the code worked

    add_filter('ocean_floating_bar_select_text','custom_select_options');
    function custom_select_options($text){
    	$new_text = esc_html__( '選擇', 'oceanwp' );
    	return $new_text;
    }
    
    • This reply was modified 4 years, 11 months ago by yannyann.
    • This reply was modified 4 years, 11 months ago by yannyann.
Viewing 1 replies (of 1 total)
  • The topic ‘How do I change the button text on select option in single product page’ is closed to new replies.