Archived topic
Read More Tag In URL
9 replies · Started by Vernon Lees on May 23, 2016
Hi Tom
I've only just noticed this recently - I'm sure it wasn't about previously.
When I click the Read more link from the Blog section I'm getting this appended to the URL -
http://mywebsite/my_post/#more-2254
Is is possible to get rid of this?
Best Regards,
Vernon
Hi Tom
thanks for the quick reply. :-)
I'm just trying to understand is this a new thing in Wordpress or a change to GeneratePress? I'm thinking its GP as I have a site that has not been upgraded in a while which isn't appending this tag to the URL?
Best Regards,
Vernon
It was added to GP quite a long time ago, but it is standard WordPress functionality that GP didn't have at one point.
Figured it out. Under Blog Post Content I have the site with the additional URL structure set 'Show Excerpt'.
I changed this to 'Show Full Post' and it cleared up the link.:-)
Thanks for stoking the grey matter!
That's my job! :)
Hi Tom,
I tried to add the PHP code using the code snippet plugin but still, I have two issues, where I am using the WP and generate press latest version.
This is the code I added :
add_action( 'after_setup_theme', function() {
remove_filter( 'attachment_link', 'generate_enhanced_image_navigation', 10, 2 );
} );
(I tried by closing the tag with ?> and without closing tag)
1- From homepage in a recent post if I do click to any post then the opened URL is having a random alphanumeric code added at the end, such as https://www.mrvyasidea.com/oberlo-review-shopify-dropshipping.html?fd827a&fd827a
2- Under any category, if I am clicking to Read more button then every URL is added with a #more-
https://www.mrvyasidea.com/oberlo-review-shopify-dropshipping.html#more-3375
Please do check with my site:https://mrvyasidea.com
Hi there,
This topic is super old.
Can you open a new topic for your questions?
Thanks :)
Hi Leo, here I started a new topic :https://generatepress.com/forums/topic/read-more-and-post-url-is-having-randome-value-added-at-the-end/
Thanks :)