{"id":51468,"date":"2020-01-20T17:01:18","date_gmt":"2020-01-20T11:31:18","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=51468"},"modified":"2021-05-01T12:18:05","modified_gmt":"2021-05-01T06:48:05","slug":"enable-astra-comment-box-on-cpt","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/enable-astra-comment-box-on-cpt\/","title":{"rendered":"\u00bfC\u00f3mo habilitar Astra Comment Box en Custom Post Types?"},"content":{"rendered":"<p>\u00bfNotas la caja de comentarios por defecto y necesitas cambiarla por la caja de comentarios de Astra en Custom Post Type? <\/p>\n\n\n\n<p>Astra proporciona un filtro con el que puedes sustituir el cuadro de comentarios predeterminado por el cuadro de comentarios de Astra.<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>add_filter( 'astra_comment_form_all_post_type_support', '__return_true' );<\/code><\/pre>\n\n\n\n<p style=\"font-size:17px\">Deber\u00e1 a\u00f1adir lo siguiente <strong>filtro<\/strong> a la <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">functions.php del tema hijo<\/a>.<\/p>\n\n\n\n<p style=\"font-size:18px\"><strong>Cuadro de comentarios por defecto -<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-default-comment-box.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-default-comment-box.png\" alt=\"default comments box of Astra\" class=\"wp-image-53540\" width=\"554\" height=\"509\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-default-comment-box.png 739w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-default-comment-box-300x275.png 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:18px\"><strong>Actualizado el cuadro de comentarios utilizando el filtro mencionado -<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-comment-box-using-filter.png\"><img decoding=\"async\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-comment-box-using-filter.png\" alt=\"Comments box after adding filter for CPT\" class=\"wp-image-53541\" width=\"553\" height=\"509\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-comment-box-using-filter.png 737w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2020\/01\/ast-cpt-comment-box-using-filter-300x276.png 300w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"background-color:#efdeff\" class=\"has-background\"><strong>Nota:<\/strong> Si no puedes encontrar la caja de Comentarios en tus Custom Post Types, necesitar\u00e1s habilitarla desde los Tipos si usas el plugin Custom Post Types. Tambi\u00e9n aqu\u00ed hay un <a href=\"https:\/\/toolset.com\/forums\/topic\/how-to-add-comments-to-custom-post-type\/\">art\u00edculo<\/a> para ayudarle a localizar esta funci\u00f3n.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u00bfTe has fijado en la caja de comentarios por defecto y necesitas cambiarla por la caja de comentarios de Astra en el Custom Post Type? Astra proporciona un filtro con el que puedes reemplazar el cuadro de comentarios por defecto por el cuadro de comentarios de Astra. Necesitar\u00e1s a\u00f1adir este filtro al archivo functions.php del tema hijo. Cuadro de comentarios por defecto - Actualizado [...]<\/p>","protected":false},"author":34,"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":[108],"docs_tag":[],"class_list":{"0":"post-51468","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-general"},"spectra_custom_meta":{"_edit_lock":["1579579931:39"],"_edit_last":["39"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"_yoast_wpseo_primary_docs_category":["108"],"essb_pc_facebook":[""],"essb_pc_facebook_like":[""],"essb_pc_twitter":[""],"essb_pc_google":[""],"essb_pc_pinterest":[""],"essb_pc_linkedin":[""],"essb_pc_digg":[""],"essb_pc_del":[""],"essb_pc_stumbleupon":[""],"essb_pc_tumblr":[""],"essb_pc_vk":[""],"essb_pc_print":[""],"essb_pc_mail":[""],"essb_pc_flattr":[""],"essb_pc_reddit":[""],"essb_pc_buffer":[""],"essb_pc_love":[""],"essb_pc_weibo":[""],"essb_pc_pocket":[""],"essb_pc_xing":[""],"essb_pc_ok":[""],"essb_pc_mwp":[""],"essb_pc_more":[""],"essb_pc_whatsapp":[""],"essb_pc_meneame":[""],"essb_pc_blogger":[""],"essb_pc_amazon":[""],"essb_pc_yahoomail":[""],"essb_pc_gmail":[""],"essb_pc_aol":[""],"essb_pc_newsvine":[""],"essb_pc_hackernews":[""],"essb_pc_evernote":[""],"essb_pc_myspace":[""],"essb_pc_mailru":[""],"essb_pc_viadeo":[""],"essb_pc_line":[""],"essb_pc_flipboard":[""],"essb_pc_comments":[""],"essb_pc_yummly":[""],"essb_pc_sms":[""],"essb_pc_viber":[""],"essb_pc_telegram":[""],"essb_pc_subscribe":[""],"essb_pc_skype":[""],"essb_pc_messenger":[""],"essb_pc_kakaotalk":[""],"essb_pc_share":[""],"essb_pc_livejournal":[""],"essb_pc_yammer":[""],"essb_pc_meetedgar":[""],"essb_pc_fintel":[""],"essb_pc_mix":[""],"essb_pc_instapaper":[""],"essb_pc_copy":[""],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"_ppc_meta_key":["a:11:{s:8:\"ppc_key5\";s:37:\"Title is Catchy and Slug is Optimized\";s:20:\"ppc_key5d92f85d42273\";s:60:\"Images &amp; Names Correctly. Title &amp; Alt Tags are Given\";s:8:\"ppc_key4\";s:15:\"Formatting Done\";s:8:\"ppc_key8\";s:28:\"Spelling and Grammar Checked\";s:8:\"ppc_key6\";s:22:\"Social Images Assigned\";s:8:\"ppc_key2\";s:23:\"Featured Image Assigned\";s:8:\"ppc_key3\";s:28:\"Category and Author Selected\";s:8:\"ppc_key7\";s:8:\"Done SEO\";s:20:\"ppc_key5ddf5ba19a347\";s:9:\"TOC Added\";s:20:\"ppc_key5ddf5b93dc6a6\";s:21:\"Affiliate Links Added\";s:20:\"ppc_key5ddf5c326920c\";s:59:\"Headings are in title-case and have appropriate heading tag\";}"],"_elementor_controls_usage":["a:0:{}"],"_ht_kb_post_views_count":["10"],"_ht_kb_usefulness":["0"],"_ht_article_order_108":["51468"],"wp_last_modified_info":["May 1, 2021 @ 12:18 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["4487"],"helpful":["2"],"unhelpful":["3"],"redirects":["7"],"rank_math_primary_docs_category":["108"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["744"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"c532120ed3058f3b3cf9e3a062f3e284\";s:6:\"images\";a:1:{i:0;i:53540;}}"],"_wpml_media_duplicate":["1"],"_trp_automatically_translated_slug_es_ES":["habilitar-el-cuadro-de-comentarios-de-astra-en-cpt"],"_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:5:{i:0;s:14:\"core\/paragraph\";i:1;s:9:\"core\/code\";i:2;s:10:\"core\/image\";i:3;s:14:\"uagb\/container\";i:4;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776758916\";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":"Premanshu","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/premanshup\/"},"uagb_comment_info":0,"uagb_excerpt":"Do you notice the default Comment Box and need to change it to Astra&#8217;s Comment Box on Custom Post Type? Astra provides a filter using which you can replace the default Comments Box with the Astra&#8217;s Comment Box. You will need to add this filter to the Child theme&#8217;s functions.php. Default Comment box &#8211; Updated&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/51468"}],"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\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=51468"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/51468\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=51468"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=51468"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=51468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}