{"id":70068,"date":"2020-11-24T21:01:10","date_gmt":"2020-11-24T15:31:10","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=70068"},"modified":"2022-02-23T18:11:50","modified_gmt":"2022-02-23T12:41:50","slug":"multiple-elements-in-header-footer","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/multiple-elements-in-header-footer\/","title":{"rendered":"A\u00f1adir M\u00faltiples Elementos en el Constructor de Encabezado y Pie de P\u00e1gina"},"content":{"rendered":"<p>Astra Header Footer Builder te permite a\u00f1adir los siguientes elementos a las secciones de encabezado y pie de p\u00e1gina - <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Bot\u00f3n<\/li><li>HTML<\/li><li>Widgets <\/li><li>Social <\/li><li>Se a\u00f1adir\u00e1n m\u00e1s en el futuro <\/li><\/ul>\n\n\n\n<p>Cuando s\u00f3lo utilizas el tema Astra gratuito, el n\u00famero de cada uno de estos elementos es limitado. Pero con Astra Pro, puedes ampliarlo. <\/p>\n\n\n\n<p>Por ejemplo, Astra Theme viene con un elemento Button disponible. Cuando active el complemento Astra Pro, tendr\u00e1 dos botones disponibles por defecto. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-default.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1366\" height=\"786\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-default.png\" alt=\"Extended Default Number of the Header Elements with Astra Pro\" class=\"wp-image-97734\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-default.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-default-300x173.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-default-1024x589.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-default-768x442.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/figure>\n\n\n\n<p>Adem\u00e1s de tener m\u00e1s elementos por defecto, con Astra Pro puede ampliar el n\u00famero de botones para tener m\u00e1s de dos. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1366\" height=\"786\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-with-filter.png\" alt=\"Custom Number of the Header Elements With Added Filter\" class=\"wp-image-97735\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-with-filter.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-with-filter-300x173.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-with-filter-1024x589.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/07\/ast-3-6-pro-elements-with-filter-768x442.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/figure>\n\n\n\n<p>Tambi\u00e9n puedes hacer esto para la mayor\u00eda de los otros elementos en tu Header Footer Builder. Puedes a\u00f1adir m\u00faltiples elementos para HTML, widgets y elementos sociales. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Pasos para a\u00f1adir varios elementos (bot\u00f3n, HTML, widget y social) <\/h3>\n\n\n\n<p><strong>Primer paso <\/strong>- Aseg\u00farese de tener activado el plugin Astra Pro. <\/p>\n\n\n\n<p><strong>Paso 2<\/strong> - Tendr\u00e1s que a\u00f1adir c\u00f3digo personalizado para varios elementos, as\u00ed que aseg\u00farate de tener<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/\"> el tema infantil Astra instalado y activado<\/a>. <\/p>\n\n\n\n<p><strong>Paso 3<\/strong> - Edite el archivo functions.php del tema hijo Astra y a\u00f1ada el siguiente c\u00f3digo personalizado. Puede a\u00f1adir s\u00f3lo los campos requeridos del siguiente c\u00f3digo. <\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>\/**\n * Update the count of elements in HF Builder.\n *\n * @param array $elements array of elements having key as slug and value as count.\n * @return array $elements\n *\/\nfunction astra_builder_elements_count( $elements ) {\n    $elements&#91;'header-button']       = 3;\n    $elements&#91;'footer-button']       = 3;\n    $elements&#91;'header-html']         = 3;\n    $elements&#91;'footer-html']         = 3;\n    $elements&#91;'header-widget']       = 3;\n    $elements&#91;'footer-widget']       = 3;\n    $elements&#91;'header-social-icons'] = 3;\n    $elements&#91;'footer-social-icons'] = 3;\n    return $elements;\n}\nadd_filter( 'astra_builder_elements_count', 'astra_builder_elements_count', 10 );<\/code><\/pre>\n\n\n\n<p>En el c\u00f3digo anterior, puede ver los valores establecidos para cada elemento de encabezado y pie de p\u00e1gina. Puede editar el c\u00f3digo y establecer el valor para que coincida con el n\u00famero de elementos que necesita. En el c\u00f3digo anterior, estos valores se establecen en 3 como ejemplo. <\/p>\n\n\n\n<p>Por lo tanto, si usted necesita, digamos 6 widgets disponibles en el constructor de pie de p\u00e1gina, el c\u00f3digo editado se ver\u00eda as\u00ed:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>\/**\n * Update the count of elements in HF Builder.\n *\n * @param array $elements array of elements having key as slug and value as count.\n * @return array $elements\n *\/\nfunction astra_builder_elements_count( $elements ) {\n    $elements&#91;'footer-widget']       = 6;\n    return $elements;\n}\nadd_filter( 'astra_builder_elements_count', 'astra_builder_elements_count', 10 );<\/code><\/pre>\n\n\n\n<p>Esto puede hacerse para cualquier elemento de cabecera o pie de p\u00e1gina. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1169\" height=\"724\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/11\/ast-hf-update-footer-widget-count.png\" alt=\"Astra Update Footer Widget Count\" class=\"wp-image-70149\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/11\/ast-hf-update-footer-widget-count.png 1169w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/11\/ast-hf-update-footer-widget-count-300x186.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/11\/ast-hf-update-footer-widget-count-1024x634.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/11\/ast-hf-update-footer-widget-count-768x476.png 768w\" sizes=\"(max-width: 1169px) 100vw, 1169px\" \/><\/figure>","protected":false},"excerpt":{"rendered":"<p>Astra Header Footer Builder te permite a\u00f1adir los siguientes elementos a las secciones de cabecera y pie de p\u00e1gina - Bot\u00f3n HTML Widgets Social M\u00e1s se a\u00f1adir\u00e1n en el futuro Cuando utilizas el tema Astra gratuito solamente, el n\u00famero de cada uno de estos elementos es limitado. Pero con Astra Pro, puedes ampliarlo. Por ejemplo, Astra [...]<\/p>","protected":false},"author":20,"featured_media":0,"comment_status":"closed","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":[1995],"docs_tag":[],"class_list":{"0":"post-70068","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-header-footer-after-3-0"},"spectra_custom_meta":{"_edit_lock":["1690953739:86"],"_edit_last":["77"],"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":["60"],"_yoast_wpseo_primary_docs_category":["1995"],"_wp_old_slug":["add-multiple-elements-in-header-footer-builder"],"_ht_kb_post_views_count":["10"],"_ht_kb_usefulness":["0"],"_ht_article_order_1995":["70068"],"wp_last_modified_info":["February 23, 2022 @ 6:11 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_yoast_wpseo_estimated-reading-time-minutes":["3"],"views":["13484"],"helpful":["15"],"unhelpful":["15"],"redirects":["8"],"rank_math_primary_docs_category":["1995"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["524"],"rank_math_seo_score":["18"],"rank_math_internal_links_processed":["1"],"pfd_related_docs":["a:3:{i:0;s:5:\"89779\";i:1;s:5:\"89887\";i:2;s:5:\"68721\";}"],"pfd_manual_related_docs":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"9eafaa008766d83e084b99029f1149e4\";s:6:\"images\";a:1:{i:0;i:97734;}}"],"_trp_automatically_translated_slug_es_ES":["multiples-elementos-en-la-cabecera-pie-de-pagina"],"_uag_page_assets":["a:9:{s:3:\"css\";s:2495:\".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:0:\"\";s:18:\"current_block_list\";a:7:{i:0;s:14:\"core\/paragraph\";i:1;s:9:\"core\/list\";i:2;s:10:\"core\/image\";i:3;s:12:\"core\/heading\";i:4;s:9:\"core\/code\";i:5;s:14:\"uagb\/container\";i:6;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776818626\";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":"Anjali","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/anjalic\/"},"uagb_comment_info":0,"uagb_excerpt":"Astra Header Footer Builder allows you to add the following elements to header and footer sections &#8211; Button HTML Widgets Social More will be added in future When you use the free Astra theme only, the number of each of these elements is limited. But with Astra Pro, you can extend this. For example, Astra&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/70068"}],"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\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=70068"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/70068\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=70068"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=70068"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=70068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}