{"id":19034659,"date":"2026-10-02T07:49:21","date_gmt":"2026-10-02T07:49:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/update-to-read-more-link-location\/"},"modified":"2026-10-02T07:49:21","modified_gmt":"2026-10-02T07:49:21","slug":"update-to-read-more-link-location","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/update-to-read-more-link-location\/","title":{"rendered":"Update to read more link location"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have been trying to get Subversion to work, but for some reason it doesn&#8217;t like my login credentials \ud83d\ude41<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I had changed the file<br \/>class\/advanced-excerpt.php from line 431 to<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        $allow_tags_to_append_into = apply_filters( 'advanced_excerpt_allow_tags_to_append_into', array( 'p', 'article', 'section' ) );\n\n        if( !in_array( $last_tag, $allow_tags_to_append_into ) ) {\n\n        \/\/ After the content\n        $block_level_tags = apply_filters(\n            'advanced_excerpt_block_level_tags',\n            array( 'blockquote', 'div', 'ul', 'ol', 'li', 'table',\n            'dl', 'dd', 'dt', 'h1', 'h2', 'h3', 'h4', 'h5',\n            'h6', 'pre', 'figure', 'figcaption', 'aside',\n            'header', 'footer', 'main', 'details', 'dialog',\n            'address', 'fieldset', 'form', 'nav', 'section' )\n        );\n\n        if ( in_array( $last_tag, $block_level_tags ) ) {\n            $text .= '&lt;p class=\"excerpt-read-more\"&gt;' . trim( $ellipsis ) . '&lt;\/p&gt;';\n        } else {\n            \/\/ After the content\n            $text .= $ellipsis;\n        }\n        return $text;\n    }\n\n        \/\/ Inside last HTML tag\n        $text = substr_replace( $text, $ellipsis, $pos, 0 );\n        return $text;\n    }\n\n    \/\/ After the content\n    $text .= $ellipsis;\n    return $text;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This solves the problem where where read more links land in a post container outside of paragraph if excerpt ends with a closing tag other than p\/article\/selection. This means that the read more link is not always aligned with the preceding container and can be far on the left. Adding &#8216;blockquote&#8217; to the whitelist doesn&#8217;t work because then the read more link appears inside the blockquote.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Best!<\/p>\n","protected":false},"template":"","class_list":["post-19034659","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19034659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19034659\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19034659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}