Skip to main content
Known Participant
August 14, 2019
Question

How do you add a link to XML file without using an image?

  • August 14, 2019
  • 2 replies
  • 1287 views

Hello. This might seem like a dumb question, but I've created an XML file for an RSS feed and I want to add a link/URL to it without having to put any new text or image on my home page and I can't figure out how to do it.

Any ideas?


Thanks.

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    August 14, 2019

    I don't understand the question as phrased.  Maybe you could tell us more about the XML file -- the feed it contains and how you are using it.

    As an example, this tutorial describes how to parse an XML feed from YouTube with PHP code and display results in a web page.

    Parse XML Feed with PHP Code - https://alt-web.com/

    Nancy O'Shea— Product User & Community Expert
    Known Participant
    August 14, 2019

    What I'm asking for is much simpler than that (I think). I know it could easily do this by inserting some text that says RSS and/or an image, but I'm specifically trying not to add or change anything visible on my home page. Does that make sense?

    B i r n o u
    Community Expert
    Community Expert
    August 14, 2019

    what do you mean, having a link without any element (text or image) to click on to get the hyperlink working ?

    so you want to have a node clikable ?

    Known Participant
    August 14, 2019

    I just want to have an RSS feed that I can supply to a company that's tracking the content on my site, but I essentially want it to be invisible. I have created an XML file with the data for the feed and need to provide them a URL that they can connect to.

    Does that make sense?

    B i r n o u
    Community Expert
    Community Expert
    August 14, 2019

    well, I think that I understand your question.

    so, if it is what I think, you just place your RSS file where ever you like on your site tree (say the full path to the file) . generally on the root folder, and you indicate it in the HTML file using a LINK tag

    as

    <link rel="alternate" type="application/rss+xml" href="the full path to the file" title="The RSS file title">

    was it that ?