Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to change the link “rel” attribute for posts?

  • This topic has 3 replies, 3 voices, and was last updated 1 year, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #9028
    Avatar photostripedzebra1

    I run my Publii site as a news organization and sometimes have other people guest post for a fee. Is there a way to create an option to change the link “rel” attribute of individual posts to “sponsored” or something else?

    Avatar photoBob

    What kind of links are you talking about?

    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    Avatar photostripedzebra1

    Hi Bob, thank you for the quick response.

    I’m talking about the rel attribute for the posts themselves. For example, if I wanted to differentiate a article written by a guest who pays a fee, I would set the maintag as “sponsored” and have the rel attribute be “sponsored,” whereas normal posts would not have any rel attribute. This distinction makes it easier for readers using my RSS to see the sponsored posts, etc.

    But it doesn’t appear that an option for changing the rel attribute exists per post. It would look like the picture I’ve attached, except for the actual posts themselves, not links within the posts.

    Avatar photoitips3727

    If you go to:

    you can read more setting rel=”sponsored” and rel=”ugc” to links in your web pages / posts. Although the page refers to the Block editor, the same options are available for links when using the WYSIWYG editor too.

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