[Resolved] How to make linked text?

Home Forums Support [Resolved] How to make linked text?

Home Forums Support How to make linked text?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1260183
    Lukasz

    Hi,
    I would like to use the filter generate_404_text to create custom text. In other words I want to put some text let’s Homepage as link to homepage (it could be piece of a text). How to do that?

    #1260380
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this:

    add_filter( 'generate_404_text', function() {
        return '<a href="YOUR URL HERE">Your custom text</a>';
    } );

    Let me know ๐Ÿ™‚

    #1261975
    Lukasz

    It works perfectly. You are hero.

    #1262081
    Tom
    Lead Developer
    Lead Developer

    Glad I could help! ๐Ÿ™‚

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