- This topic has 7 replies, 2 voices, and was last updated 4 years ago by
Tom.
-
AuthorPosts
-
March 9, 2019 at 1:52 pm #834118
epickenyan
Hi. I am not sure what is causing this issue with the RSS since I switched to generatepress. The post title is showing next to read more (or view more in my case) button and they are close together while it should not http://prntscr.com/mvnl9i.
GeneratePress 2.2.2GP Premium 1.7.8March 9, 2019 at 5:24 pm #834203Tom
Lead DeveloperLead DeveloperHi there,
Can you try this?: https://gist.github.com/generatepress/a5f0dfd0db3c1d7fc5b217e07203fc58
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 10, 2019 at 2:22 am #834351epickenyan
It did not work. Even tried increasing priority to 99 and purging cache. The code is active if you want to look at the site.
March 10, 2019 at 10:04 am #834749Tom
Lead DeveloperLead DeveloperStrange, I’ve confirmed that it fixes the issue before.
How are you adding the code?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 10, 2019 at 11:34 am #834832epickenyan
Using the code snippets plugin.
March 10, 2019 at 4:36 pm #834993Tom
Lead DeveloperLead DeveloperCan you try this instead?:
add_action( 'wp', function() { add_filter( 'generate_excerpt_more_output', function( $more ) { if ( is_feed() ) { return sprintf( ' ... <a title="%1$s" class="read-more" href="%2$s">%3$s</a>', the_title_attribute( 'echo=0' ), esc_url( get_permalink( get_the_ID() ) ), __( 'Read more', 'generatepress' ) ); } return $more; }, 50 ); add_filter( 'the_content_more_link', function( $more ) { if ( is_feed() ) { return sprintf( '<p class="read-more-container"><a title="%1$s" class="read-more content-read-more" href="%2$s">%3$s</a></p>', the_title_attribute( 'echo=0' ), esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump','#more-' . get_the_ID() ) ), __( 'Read more', 'generatepress' ) ); } return $more; }, 50 ); }, 100 );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 10, 2019 at 4:48 pm #835003epickenyan
Thanks. The previous option is working. Not sure why it took some time to work. Is this second code more efficient than the first?
March 10, 2019 at 4:51 pm #835006Tom
Lead DeveloperLead DeveloperNo, the first is better if it’s working ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.