{"id":56277,"date":"2015-10-26T07:25:54","date_gmt":"2015-10-26T11:25:54","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=56277"},"modified":"2016-02-24T06:14:09","modified_gmt":"2016-02-24T11:14:09","slug":"woocommerce-how-to-change-select-options-text","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/woocommerce-how-to-change-select-options-text.html","title":{"rendered":"WooCommerce. How to change &#8220;Select options&#8221; text"},"content":{"rendered":"<p>\r\n<p>This tutorial will show you how to change <strong>Select options<\/strong> text in <strong>WooCommerce<\/strong> templates.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=EgOMCdpKYww?width=1280&amp;height=720\" rel=\"prettyPhoto\">WooCommerce. How to change &#8220;Select options&#8221; text<\/a><\/p>\r\n<p>Here is the <strong>Select Options<\/strong> text that you can find on the <strong>Shop<\/strong> page or <strong>products archive <\/strong> page:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-1-300x154.png\" alt=\"WooCommerce-How_to_change_Select_options_text-1\" width=\"300\" height=\"154\" class=\"aligncenter size-medium wp-image-56278\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-1-300x154.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-1-150x77.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-1-1024x526.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-1.png 1286w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>We will replace this text with some other text.<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into the host control panel (<strong>cPanel<\/strong>), go to <strong>File Manager<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-2-297x300.png\" alt=\"WooCommerce-How_to_change_Select_options_text-2\" width=\"297\" height=\"300\" class=\"aligncenter size-medium wp-image-56279\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-2-297x300.png 297w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-2.png 701w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/a><\/p>\r\n<p>Locate the root directory of wordpress site.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-3-300x194.png\" alt=\"WooCommerce-How_to_change_Select_options_text-3\" width=\"300\" height=\"194\" class=\"aligncenter size-medium wp-image-56280\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-3-300x194.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-3-150x97.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-3.png 947w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Go to <strong>wp-content\/themes\/themeXXXXX\/includes<\/strong> directory. Open <strong>custom-function.php<\/strong> file to edit: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-4-300x109.png\" alt=\"WooCommerce-How_to_change_Select_options_text-4\" width=\"300\" height=\"109\" class=\"aligncenter size-medium wp-image-56281\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-4-300x109.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-4-150x55.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-4.png 962w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>In the bottom of this file, before closing code <strong>?><\/strong>, we will need to add the following codes:<\/p>\r\n<pre class=\"brush:php\">\r\nadd_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );\r\nfunction custom_woocommerce_product_add_to_cart_text() {\r\n\tglobal $product;\t\r\n\t$product_type = $product->product_type;\t\r\n\tswitch ( $product_type ) {\r\ncase 'variable':\r\n\t\t\treturn __( 'Options', 'woocommerce' );\r\n\t\tbreak;\r\n}\r\n} \r\n<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-5-300x156.png\" alt=\"WooCommerce-How_to_change_Select_options_text-5\" width=\"300\" height=\"156\" class=\"aligncenter size-medium wp-image-56282\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-5-300x156.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-5-150x78.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-5-1024x532.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-5.png 1285w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>You can see <strong>Options<\/strong> text, this text will replace the current <strong>Select Options<\/strong> text at the front end. If you need some other text, you can replace this text. Save the file. <\/p>\r\n<\/li>\r\n<li>\r\n<p> Refresh the shop page\/archive page to see the new text: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-6-300x156.png\" alt=\"WooCommerce-How_to_change_Select_options_text-6\" width=\"300\" height=\"156\" class=\"aligncenter size-medium wp-image-56283\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-6-300x156.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-6-150x78.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-6-1024x532.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/WooCommerce-How_to_change_Select_options_text-6.png 1206w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=EgOMCdpKYww?width=1280&amp;height=720\" rel=\"prettyPhoto\">WooCommerce. How to change &#8220;Select options&#8221; text<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to to change <strong>Select options<\/strong> text in <strong>WooCommerce<\/strong> templates.<\/p>\n","protected":false},"author":69,"featured_media":56285,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1556],"tags":[900,2095,518,2418],"class_list":["post-56277","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce-tutorials","tag-option","tag-select-options","tag-text","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/56277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=56277"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/56277\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/56285"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=56277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=56277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=56277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}