{"id":165413,"date":"2023-11-01T16:23:51","date_gmt":"2023-11-01T10:53:51","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=165413"},"modified":"2024-03-17T12:20:13","modified_gmt":"2024-03-17T06:50:13","slug":"default-review-tab","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/default-review-tab\/","title":{"rendered":"C\u00f3mo establecer la pesta\u00f1a \"Revisar\" como pesta\u00f1a activa por defecto en WooCommerce"},"content":{"rendered":"<p>En una tienda de comercio electr\u00f3nico impulsada por WooCommerce, las pesta\u00f1as de la p\u00e1gina del producto desempe\u00f1an un papel crucial a la hora de proporcionar informaci\u00f3n a los clientes potenciales. Por defecto, la pesta\u00f1a \"Descripci\u00f3n\" suele ser la pesta\u00f1a activa cuando un usuario entra en la p\u00e1gina de un producto.<\/p>\n\n\n\n<p>Sin embargo, en algunos casos, es posible que desee destacar la pesta\u00f1a \"Opini\u00f3n\" como la pesta\u00f1a activa por defecto para animar a los clientes a leer y dejar opiniones.<\/p>\n\n\n\n<p>En este tutorial, te mostraremos c\u00f3mo conseguirlo a\u00f1adiendo un simple fragmento de c\u00f3digo al archivo functions.php de tu Astra Child Theme.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-165413-_miyq40xme8za\"><\/a><strong>C\u00f3mo establecer la pesta\u00f1a \"Revisar\" como pesta\u00f1a activa por defecto en WooCommerce<\/strong><\/h3>\n\n\n\n<p>Antes de empezar, aseg\u00farese de que tiene acceso al panel de administraci\u00f3n de WordPress. A continuaci\u00f3n, sigue estos pasos:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Inicie sesi\u00f3n en el panel de administraci\u00f3n de WordPress.<\/li>\n\n\n\n<li>Vaya a \"Apariencia\" y haga clic en \"Editor de temas\".<\/li>\n\n\n\n<li>En la parte derecha, ver\u00e1s una lista de archivos del tema. Busca el archivo functions.php de tu Astra Child Theme. Deber\u00eda estar ubicado en el directorio del tema.<\/li>\n\n\n\n<li>Haga clic en el archivo \"functions.php\" para abrirlo y editarlo.<\/li>\n\n\n\n<li>Una vez que tenga abierto el archivo functions.php, puede a\u00f1adir el siguiente fragmento de c\u00f3digo al final del archivo.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );\nfunction woo_reorder_tabs( $tabs ) {\n    $tabs&#91;'reviews']&#91;'priority'] = 5;           \/\/ Reviews first\n    $tabs&#91;'description']&#91;'priority'] = 10;      \/\/ Description second\n    return $tabs;\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Despu\u00e9s de a\u00f1adir el fragmento de c\u00f3digo, aseg\u00farese de guardar los cambios. Para ello, haga clic en el bot\u00f3n \"Actualizar archivo\" situado en la parte inferior de la ventana de edici\u00f3n.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1815\" height=\"774\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1.png\" alt=\"How to Set the &quot;Review&quot; Tab as the Default Active Tab in WooCommerce\" class=\"wp-image-165414\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1.png 1815w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1-300x128.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1-1024x437.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1-768x328.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1-1536x655.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-1-18x8.png 18w\" sizes=\"(max-width: 1815px) 100vw, 1815px\" \/><\/a><\/figure>\n\n\n\n<p>Este c\u00f3digo reordenar\u00e1 la prioridad de las pesta\u00f1as de los productos, haciendo que la pesta\u00f1a \"Opiniones\" sea la primera en mostrarse y la pesta\u00f1a \"Descripci\u00f3n\" la segunda.<\/p>\n\n\n\n<p>Ahora que has a\u00f1adido y guardado el c\u00f3digo, puedes ir a cualquier p\u00e1gina de producto de tu tienda WooCommerce para ver la pesta\u00f1a \"Opini\u00f3n\" establecida como pesta\u00f1a activa por defecto. Este cambio animar\u00e1 a los clientes a leer y dejar opiniones, lo que puede aumentar la confianza y las ventas en tu sitio web.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2.png\"><img decoding=\"async\" width=\"1659\" height=\"1157\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2.png\" alt=\"How to Set the &quot;Review&quot; Tab as the Default Active Tab in WooCommerce\" class=\"wp-image-165415\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2.png 1659w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2-300x209.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2-1024x714.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2-768x536.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2-1536x1071.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/11\/word-image-165413-2-18x12.png 18w\" sizes=\"(max-width: 1659px) 100vw, 1659px\" \/><\/a><\/figure>\n\n\n\n<p>Siguiendo los pasos descritos en este documento y a\u00f1adiendo el fragmento de c\u00f3digo proporcionado al archivo functions.php de tu Astra Child Theme, puedes realizar este ajuste f\u00e1cilmente.<\/p>\n\n\n\n<p>Su tienda en l\u00ednea se beneficiar\u00e1 de una mayor visibilidad de las opiniones sobre los productos, lo que puede aumentar las tasas de conversi\u00f3n y la satisfacci\u00f3n de los clientes.<\/p>\n\n\n\n<div class=\"wp-block-uagb-inline-notice uagb-inline_notice__align-left uagb-block-348cbd8d\"><button class=\"uagb-notice-close-button\" type=\"button\" aria-label=\"Cerrar\"><\/button><h4 class=\"uagb-notice-title\">Nota:<\/h4><div class=\"uagb-notice-text\">\n<p>Disponemos de documentaci\u00f3n sobre c\u00f3mo a\u00f1adir c\u00f3digos personalizados. Este documento le ayudar\u00e1 a entenderlo mejor. Aqu\u00ed est\u00e1 el enlace\u00a0<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/\">https:\/\/git-staging.wpastra.com\/docs\/add-custom-php-code\/<\/a>.<\/p>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>En una tienda de comercio electr\u00f3nico impulsada por WooCommerce, las pesta\u00f1as de la p\u00e1gina del producto desempe\u00f1an un papel crucial a la hora de proporcionar informaci\u00f3n a los clientes potenciales. Por defecto, la pesta\u00f1a \"Descripci\u00f3n\" suele ser la pesta\u00f1a activa cuando un usuario entra en la p\u00e1gina de un producto. Sin embargo, en algunos casos, es posible que desee resaltar la pesta\u00f1a \"Opini\u00f3n\" como la [...]<\/p>","protected":false},"author":89,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[155],"docs_tag":[],"class_list":{"0":"post-165413","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-woocommerce-free"},"spectra_custom_meta":{"wp_last_modified_info":["November 2, 2023 @ 12:14 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1710658220:109"],"_wplmi_last_modified":["2023-11-02 12:14:25"],"rank_math_seo_score":["16"],"rank_math_internal_links_processed":["1"],"_uag_custom_page_level_css":[""],"_lmt_disableupdate":[""],"_lmt_disable":[""],"ast-site-content-layout":["default"],"theme-transparent-header-meta":[""],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"_edit_last":["109"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"rank_math_primary_docs_category":["155"],"views":["2913"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"16e43cc029c9006ab8e9ef624a4e3c6f\";s:6:\"images\";a:1:{i:0;i:165414;}}"],"_wp_old_slug":["how-to-set-the-review-tab-as-the-default-active-tab-in-woocommerce","set-the-review-tab-as-the-default-active-tab-in-woocommerce","set-review-tab-as-default-active-tab-in-woocommerce"],"helpful":["1"],"unhelpful":["0"],"redirects":["0"],"_trp_automatically_translated_slug_es_ES":["ficha-de-revision-por-defecto"],"pfd_related_docs":[""],"_uag_page_assets":["a:9:{s:3:\"css\";s:3704:\" .uagb-block-348cbd8d.wp-block-uagb-inline-notice .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-348cbd8d .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;border: 2px solid #FFD54F;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px;} .uagb-block-348cbd8d.uagb-dismissable button[type=\"button\"] svg{width: 16px;height: 16px;} .uagb-block-348cbd8d.uagb-dismissable > svg{width: 16px;height: 16px;} .uagb-block-348cbd8d .uagb-notice-title{background-color: #FFD54F;border-top-right-radius: 3px;border-top-left-radius: 3px;}@media only screen and (max-width: 976px) { .uagb-block-348cbd8d .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-348cbd8d .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}@media only screen and (max-width: 767px) { .uagb-block-348cbd8d .uagb-notice-text{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;} .uagb-block-348cbd8d .uagb-notice-title{padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom: 15px;}}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:271:\"document.addEventListener(\"DOMContentLoaded\", function(){ window.addEventListener( 'DOMContentLoaded', function() {\n\tUAGBInlineNotice.init( {\"c_id\":null,\"cookies\":false,\"close_cookie_days\":1,\"noticeDismiss\":\"\",\"icon\":\"rectangle-xmark\"}, '.uagb-block-348cbd8d' );\n});\n });\";s:18:\"current_block_list\";a:9:{i:0;s:14:\"core\/paragraph\";i:1;s:12:\"core\/heading\";i:2;s:9:\"core\/list\";i:3;s:14:\"core\/list-item\";i:4;s:9:\"core\/code\";i:5;s:10:\"core\/image\";i:6;s:18:\"uagb\/inline-notice\";i:7;s:14:\"uagb\/container\";i:8;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1775561516\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"mounikak","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/mounikak\/"},"uagb_comment_info":0,"uagb_excerpt":"In an e-commerce store powered by WooCommerce, the product page tabs play a crucial role in providing information to potential customers. By default, the &#8220;Description&#8221; tab is usually set as the active tab when a user lands on a product page. However, in some cases, you might want to highlight the &#8220;Review&#8221; tab as the&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/165413"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=165413"}],"version-history":[{"count":1,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/165413\/revisions"}],"predecessor-version":[{"id":175354,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/165413\/revisions\/175354"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=165413"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=165413"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=165413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}