• Below is the code in a post: This first one is what is now showing up which does not work. The file is is uploads. The second one was how it used to call up a file which works.

    <a>Chrome L Adj</a>
    
    <a href="http://gowd.us/wp-content/uploads/2015/12/NH-Basic-2CRev.docx"
    onClick="ga('send', 'event', 'button', 'click', 'Check List');"><fcb>here,fcb></fcb>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Obviously I can’t say how your old code became your new code, but I assume you’re wanting to simply link to a file that you uploaded to your Media?

    If that’s the case, you’re on the right track.

    Here’s a basic overview of how Links (anchor tags) work and how to “markup” your content to insert a link.

    Your new code is missing the attribute “href” which uses the url to the file you want to link to.

    The old code, while working is rather awkward as it has some extra Javascript code that I am sure is unnessary, aas well as the “Anchor Text” (the words you want your link placed on) is currently “here,fcb”, which would seem to be not intentional. There’s also some random <fcb> tag in there.

    To simplify your code you’d want something like this:

    <a href="http://gowd.us/wp-content/uploads/2015/12/NH-Basic-2CRev.docx">Click here for the file</a>

    That’s if you’re editing in the Text editor of WordPress.

    Using the visual editor, you can select any words you want to place the link onto, and
    paste in the URL of the file you want to link to.

    http://gowd.us/wp-content/uploads/2015/12/NH-Basic-2CRev.docx

    If you don’t know the URL of the file, go to your media manager directly or by clicking the Add Media button on the post edit screen, find the file you want to link to, select it, and look for the field labeled “URL”. Select the entire string in that field box because that’s the direct URL to your file. You can now use that to paste into the URL field when adding a link, or within the href attribute when editing code.

    Cheers,

    Mike

    Thread Starter rwhalls

    (@rwhalls)

    Could you go to my site gowd.us and look at a post “Upload New Code” in the Recent Articles right hand column and upload the doc. You will see that in order to get the file one has to click on CheckList5, then Save and then click the tab at the bottom of the page. You can see the code for this in [264].

    Then go to the center pane and click on here which gets the same doc without having to click on CheckList5. In [260] you can see the code I had to use to make it work this way.

    I can’t have authors who include docs in their posts have to go an change code.

    Hi,

    Can you help me clarify your problem.

    I understand you simply need help with the process of uploading a file to your WordPress site so that it can be added as a clickable download link in the body of a page or post?

    It would seem you’ve found a way, but it’s not working well, and maybe it’s too complicated for your authors to follow.

    Is this correct?

    Mike

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Media uploads’ is closed to new replies.