Sign in

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

  • This topic has 3 replies, 3 voices, and was last updated 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    #9031
    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!

    #9036
    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.

    #9044
    Avatar photoitips3727

    If you go to: https://getpublii.com/docs/the-block-editor.html#inserting-link

    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.