• Okay, help me with this, cuz I don’t understand what I need to do. I’ve got a static page created with a custom template. On that page there are song titles and I want to create both ‘listening’ and ‘download’ links beside each song title. On the static page, I created the names of each song in Dashboard ‘Edit Page’. So, do I put the code for the ‘listen’ and ‘download’ links in Dashboard Edit Page beside each song title? I can’t think of any other way to do it.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter dobro

    (@dobro)

    Oh piddle, I forgot to ask – where do I put the mp3s for listening and downloading? In my themes folder? In my wordpress folder? Does it matter?

    Learning curve, learning curve
    You can’t dodge, you can’t swerve
    Gotta meet that learning curve

    Thread Starter dobro

    (@dobro)

    Okay, I’m on the right track, I think, but still no joy. I can get the code I’m using to appear beside the song title, but I don’t want code to appear, of course. Plus, it doesn’t download.

    Here’s the code I’m using right now (I got it off an old website that talks about html):

    <a href=https://sitename.com/songname.mp3>download.</a>

    What’s the problem? Dumb code? Plus I’m still wondering where exactly to put the mp3 itself? In public html? In my themes folder? Damn. I’ll get it eventually. But help would be good. ??

    The URL needs quotes around it:

    <a href="https://example.com/songname.mp3">download</a>

    Thread Starter dobro

    (@dobro)

    Yeah, that’s right. I’ll try it.

    Thread Starter dobro

    (@dobro)

    Okay, it’s linking to the mp3 and I can download it, but the page is still displaying code instead of the word ‘download’.

    So now it’s a code issue, right? Cuz WordPress can access the mp3 okay, so the problem isn’t that I put it in the wrong folder. I’ve just got some duff code.

    Thread Starter dobro

    (@dobro)

    This html code should work on a static page, right? Or do I need to use php code cuz it’s WordPress?

    html link code should work fine in a post or page (php needs a plugin). Make sure that you do not use the visual editor if you are adding code. If you are using complex html code (like an embedded music player), then I’d recommend a plugin for it. You can check if you have code errors here (use the show source option):

    https://validator.w3.org/

    Thread Starter dobro

    (@dobro)

    Hey, iridiax – thanks for the help.

    iridiax: html link code should work fine in a post or page (php needs a plugin).

    dobro: Good. But what do you mean by ‘php needs a plugin’?

    iridiax: Make sure that you do not use the visual editor if you are adding code.

    dobro: Actually, the closest I came to getting it to work last night was using the visual editor. Why do you recommend not using it?

    iridiax: If you are using complex html code (like an embedded music player), then I’d recommend a plugin for it.\

    dobro: So, a plugin for embedded music players, but nothing except the code for a download, right?

    iridiax: You can check if you have code errors here (use the show source option):

    https://validator.w3.org/

    dobro: This was interesting. I tried it on my site and it seemed to generate some false positives – it spotted errors where things seem to be working fine.

    Thread Starter dobro

    (@dobro)

    Okay, here’s what’s happening: I’ve got the link displayed correctly on the page, but instead of downloading it when I click on it, my computer launches Quicktime so I can listen to it. Arrgh.

    Also, the word ‘download’ isn’t displayed next to the song title where I want it. (It’s displayed on the line beneath the song title.) How do I get it on the same line?

    Thread Starter dobro

    (@dobro)

    Okay, now I’ve got the link on the same line, but I want to insert spaces between the song title and the ‘download’ word.

    Thread Starter dobro

    (@dobro)

    Mmm…do I need to get a table going in html in order to place things where I want them on the page?

    Thread Starter dobro

    (@dobro)

    Or is there an easy way to simply insert spaces between text items?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘help’ is closed to new replies.