- This topic has 6 replies, 4 voices, and was last updated 3 years ago by
Leo.
-
AuthorPosts
-
January 28, 2020 at 8:49 am #1147244
Yoeri
Goodday people of GP! π
Here I am again for some tweaks to the GeneratePress theme. I need the following for one of the websites I’m working on:
1.: If you click the ‘read more’ buttons, #more will be placed in the url after the post excerpt. How can I disable this for clean urls?
2.: I want to place the post title in the ‘read more’ buttons, something like ‘Read [post title]’
3.: The next/previous posts which are placed under posts are now under each other. I’d like to have them next to eachother, like: < [previous post here] [next post here] >
4.: I want the post dates displayed without it being a link.
Thank you in advance for your help π
January 28, 2020 at 2:36 pm #1147574Leo
StaffCustomer SupportHi there,
1. https://docs.generatepress.com/article/generate_more_jump/
2. I’ll confirm this one with Tom π
3. https://docs.generatepress.com/article/inline-post-navigation/
4. https://docs.generatepress.com/article/generate_post_date_output/#remove-link-from-date
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 28, 2020 at 5:04 pm #1147642Tom
Lead DeveloperLead DeveloperHi there,
Give this a shot:
add_filter( 'option_generate_blog_settings', function( $settings ) { $settings['read_more'] = $settings['read_more'] . ' ' . get_the_title(); return $settings; } );
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 29, 2020 at 2:19 am #1147923Yoeri
Thanks Leo and Tom! Works like a charm.
For the button part it is almost like we want it. Now it shows the button text which is setup in the customizer and after that the post title. I’d like to have it literraly: ‘[post title] lezen’
What do I have to change in the php snippet? Thank you again! π
January 29, 2020 at 5:49 am #1148096David
StaffCustomer SupportHi there,
try:
add_filter( 'option_generate_blog_settings', function( $settings ) { $settings['read_more'] = get_the_title() . ' lezen'; return $settings; } );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 29, 2020 at 6:42 am #1148146Yoeri
Amazing, just like we want it! Thank you all so much! πβ€οΈ
January 29, 2020 at 10:22 am #1148468Leo
StaffCustomer SupportGlad we could help π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.