[Resolved] Customize author link

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Customize author link

Tagged: 

  • This topic has 5 replies, 2 voices, and was last updated 4 weeks ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21748
    Rolandas
    Participant

    Hi

    If us this snippet to customize posts author link in GeneratePress (Pro, last version)
    https://docs.generatepress.com/article/generate_post_author_output/

    add_filter( 'generate_post_author_output', function( $output ) {    
        return '<a href="https://www.sisla.lt/apie/">Rolandas Šišla</a>';
    } );

    How I can do the same with WP Show Posts author links?
    (I use WPSP Pro, last version)

    #21826
    Tom
    Keymaster

    Hi there,

    You should be able to do this:

    add_filter( 'wpsp_author_output', function() {
        return '<a href="https://www.sisla.lt/apie/">Rolandas Šišla</a>';
    } );
    #21884
    Rolandas
    Participant

    Fine, thanks

    #21917
    Tom
    Keymaster

    No problem!

    #22253
    Rolandas
    Participant

    Sorry, but I still have an additional question.

    How to add a class to a newly created html element, for control with same css?
    Maybe you can add a feature?

    #22273
    Tom
    Keymaster

    Which element are you wanting to add a class to?

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