[Resolved] A few tweaks to the GP theme

Home Forums Support [Resolved] A few tweaks to the GP theme

Home Forums Support A few tweaks to the GP theme

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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 πŸ™‚

    #1147574
    Leo
    Staff
    Customer Support
    #1147642
    Tom
    Lead Developer
    Lead Developer

    Hi 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 πŸ™‚

    #1147923
    Yoeri

    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! πŸ™‚

    #1148096
    David
    Staff
    Customer Support

    Hi there,

    try:

    add_filter( 'option_generate_blog_settings', function( $settings ) {
        $settings['read_more'] =  get_the_title() . ' lezen';
    
        return $settings;
    } );
    #1148146
    Yoeri

    Amazing, just like we want it! Thank you all so much! 😊❀️

    #1148468
    Leo
    Staff
    Customer Support

    Glad we could help πŸ™‚

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.