{"id":101134,"date":"2021-07-28T02:54:32","date_gmt":"2021-07-27T21:24:32","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=101134"},"modified":"2021-09-21T22:23:30","modified_gmt":"2021-09-21T16:53:30","slug":"remove-spacing-elementor-toc","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/remove-spacing-elementor-toc\/","title":{"rendered":"Eliminar el espaciado alrededor del widget Elementor Pro TOC"},"content":{"rendered":"<p>Al crear su sitio web con Astra Theme y Elementor Pro, es posible que haya notado un espaciado mayor del necesario alrededor del widget \"Tabla de contenido\" (TOC).&nbsp;<\/p>\n\n\n\n<p>La versi\u00f3n 3.6.7 de Astra Theme incluye una correcci\u00f3n, pero no se aplica autom\u00e1ticamente a los sitios web existentes. Aprenda c\u00f3mo aplicarlo a su sitio web.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfPor qu\u00e9 necesito esta mejora?<\/h2>\n\n\n\n<p>El espaciado adicional se cre\u00f3 como resultado del CSS del tema Astra para la etiqueta \"ul\" por defecto. La etiqueta afectaba al widget TOC de Elementor Pro.&nbsp;<\/p>\n\n\n\n<p>Puede consultar el siguiente ejemplo:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Este es el widget Elementor Pro TOC con el tema Hello Elementor:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1366\" height=\"640\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-hello-elementor-toc.jpg\" alt=\"Elementor Pro Table of Content Widget\" class=\"wp-image-101135\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-hello-elementor-toc.jpg 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-hello-elementor-toc-300x141.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-hello-elementor-toc-1024x480.jpg 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-hello-elementor-toc-768x360.jpg 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Y aqu\u00ed puedes ver c\u00f3mo queda el mismo widget cuando se utiliza con el tema Astra:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1366\" height=\"640\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-astra-elementor-toc.jpeg\" alt=\"Remove Spacing Around TOC Elementor Pro Widget\" class=\"wp-image-101136\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-astra-elementor-toc.jpeg 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-astra-elementor-toc-300x141.jpeg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-astra-elementor-toc-1024x480.jpeg 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-astra-elementor-toc-768x360.jpeg 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/figure>\n\n\n\n<p>Aunque la actualizaci\u00f3n Astra 3.6.7 corrige este problema, no se aplicar\u00e1 autom\u00e1ticamente a su sitio web para evitar efectos no deseados en sus sitios web existentes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u00bfC\u00f3mo solucionarlo?<\/h2>\n\n\n\n<p>Para todos los sitios web nuevos, esta correcci\u00f3n se aplicar\u00e1 autom\u00e1ticamente cuando se actualice el tema.&nbsp;<\/p>\n\n\n\n<p>Como se ha mencionado, para el sitio web existente, esta mejora debe activarse a\u00f1adiendo un filtro. Esto se ha hecho para que pueda comprobar c\u00f3mo se aplican estos cambios a su sitio web y realizar los cambios que sean necesarios.&nbsp;<\/p>\n\n\n\n<p>Para aplicar la mejora a su sitio web existente, deber\u00e1 a\u00f1adir un filtro al archivo functions.php de su tema hijo. Si no tiene instalado el tema hijo, compruebe lo siguiente <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/\">este art\u00edculo<\/a> sobre c\u00f3mo hacerlo. Por favor, a\u00f1ada el siguiente filtro:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">add_filter( 'astra_remove_elementor_toc_margin', '__return_true' );<\/pre>\n\n\n\n<p>Si no est\u00e1 seguro de c\u00f3mo a\u00f1adir este c\u00f3digo, consulte lo siguiente <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">art\u00edculo<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Al crear su sitio web con Astra Theme y Elementor Pro, es posible que haya notado un espaciado mayor del necesario alrededor del widget \"Tabla de contenido\" (TOC).  La versi\u00f3n 3.6.7 de Astra Theme incluye una soluci\u00f3n para este problema, pero no se aplica autom\u00e1ticamente a los sitios web existentes. Aprenda c\u00f3mo aplicarlo a su sitio web. Por qu\u00e9 [...]<\/p>","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","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":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","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":[2109],"docs_tag":[],"class_list":{"0":"post-101134","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-theme-pro-filters"},"spectra_custom_meta":{"wp_last_modified_info":["September 21, 2021 @ 10:23 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1633707554:70"],"_edit_last":["20"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"_yoast_wpseo_estimated-reading-time-minutes":["2"],"views":["4210"],"helpful":["2"],"unhelpful":["2"],"redirects":["2"],"_yoast_wpseo_primary_docs_category":["2109"],"rank_math_primary_docs_category":["2109"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["177"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"539776559533f27df7f11e07c07de462\";s:6:\"images\";a:1:{i:0;i:101135;}}"],"_trp_automatically_translated_slug_es_ES":["eliminar-el-espaciamiento-elementor-toc"]},"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":"Nikola Mihajlovic","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/nikolam\/"},"uagb_comment_info":0,"uagb_excerpt":"When building your website with Astra Theme and Elementor Pro you might have noticed a larger spacing around the \u201cTable Of Contents\u201d (TOC) widget than needed.&nbsp; Astra Theme version 3.6.7 came with the fix for this, but the fix is not applied automatically to existing websites. Learn how to apply it to your website. Why&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/101134"}],"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\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=101134"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/101134\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=101134"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=101134"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=101134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}