{"id":44242,"date":"2016-01-12T13:12:08","date_gmt":"2016-01-12T13:12:08","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/es-posible-eliminar-el-screen_reader_text-de-la-paginacion\/"},"modified":"2016-08-06T00:46:15","modified_gmt":"2016-08-06T00:46:15","slug":"es-posible-eliminar-el-screen_reader_text-de-la-paginacion","status":"publish","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/es-posible-eliminar-el-screen_reader_text-de-la-paginacion\/","title":{"rendered":"\u00bfEs posible eliminar el screen_reader_text de la paginaci\u00f3n?"},"content":{"rendered":"<p>Hola a todos.<\/p>\n<p>Estoy desarrollando un tema propio para mi p\u00e1gina web personal, y estoy d\u00e1ndome de cabezas con la paginaci\u00f3n del blog&#8230;<\/p>\n<p>Ver\u00e9is, partiendo de la funci\u00f3n<\/p>\n<p>get_the_posts_navigation()<\/p>\n<p>Entiendo que tiene cuatro argumentos:<\/p>\n<ul>\n<li>mid_size (int) <\/li>\n<li>prev_text (string)<\/li>\n<li>next_text (string) <\/li>\n<li>screen_reader_text (string)<\/li>\n<\/ul>\n<p>Es este \u00faltimo argumento el que me trae de cabeza (screen_reader_text), entiendo que es una cadena de texto con algo parecido al t\u00edtulo de la paginaci\u00f3n, pero yo no quiero que aparezca. Intento darle un valor false y me devuelve un valor por defecto.<\/p>\n<p>Tras revisar el core, en wp-includes\/link-template.php me encuentro con esta funci\u00f3n:<\/p>\n<pre><code>function _navigation_markup( $links, $class = &#039;posts-navigation&#039;, $screen_reader_text = &#039;&#039; ) {\n\tif ( empty( $screen_reader_text ) ) {\n\t\t$screen_reader_text = __( &#039;Posts navigation&#039; );\n\t}\n\n\t$template = &#039;\n\t&lt;nav class=&quot;navigation %1$s&quot; role=&quot;navigation&quot;&gt;\n\t\t&lt;h2 class=&quot;screen-reader-text&quot;&gt;%2$s&lt;\/h2&gt;\n\t\t&lt;div class=&quot;nav-links&quot;&gt;%3$s&lt;\/div&gt;\n\t&lt;\/nav&gt;&#039;;\n\n\t\/**\n\t * Filter the navigation markup template.\n\t *\n\t * Note: The filtered template HTML must contain specifiers for the navigation\n\t * class (%1$s), the screen-reader-text value (%2$s), and placement of the\n\t * navigation links (%3$s):\n\t *\n\t *     &lt;nav class=&quot;navigation %1$s&quot; role=&quot;navigation&quot;&gt;\n\t *         &lt;h2 class=&quot;screen-reader-text&quot;&gt;%2$s&lt;\/h2&gt;\n\t *         &lt;div class=&quot;nav-links&quot;&gt;%3$s&lt;\/div&gt;\n\t *     &lt;\/nav&gt;\n\t *\n\t * @since 4.4.0\n\t *\n\t * @param string $template The default template.\n\t * @param string $class    The class passed by the calling function.\n\t * @return string Navigation template.\n\t *\/\n\t$template = apply_filters( &#039;navigation_markup_template&#039;, $template, $class );\n\n\treturn sprintf( $template, sanitize_html_class( $class ), esc_html( $screen_reader_text ), $links );\n}<\/code><\/pre>\n<p>Me gustar\u00eda poderla reescribir y necesito ayuda sobre c\u00f3mo hacerlo porque no tengo ni idea&#8230; Y sugerir que al poner false como valor de screen_reader_text, sencillamente el t\u00edtulo no se mostrara. \u00bfO est\u00e1 as\u00ed por alguna raz\u00f3n concreta?<\/p>\n","protected":false},"template":"","class_list":["post-44242","topic","type-topic","status-publish","hentry","topic-tag-paginacion"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/44242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/44242\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=44242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}