[Support request] External link for post title

Home Forums Support [Support request] External link for post title

Home Forums Support External link for post title

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1080583
    Aaron

    How would I go about setting a particular post’s title as an external link? Thank you!

    #1081746
    Aaron

    Bump

    #1081747
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Would this be only on the archives? If so, you can set the Post Format as “Link”, and then the title will take the first link found in the content and link to it.

    Let me know 🙂

    #1081757
    Aaron

    Hi Tom, thanks! I didn’t realize you could do that. 🙂

    One other question – since this is an external link, I’m trying to get it to open in a new tab. The link itself opens in a new tab, but not the post title link when you’re surfing through index or archives. Is there an easy fix to that?

    #1081775
    Tom
    Lead Developer
    Lead Developer

    You would need to copy this file into your child theme: https://github.com/tomusborne/generatepress/blob/2.4.1/content-link.php

    Then you’d need to add target="_blank" to the <a> element here: https://github.com/tomusborne/generatepress/blob/2.4.1/content-link.php#L35

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