Page 1 of 2
MP3 player
Posted: Mon Jan 16, 2023 8:09 pm
by LRAM
Hello
Any idea for adding à MP3 player on theme like minimal or portfolio. My main goal is to have a cover and the player, so it's possimple and efficient
Thank a lot
Re: MP3 player
Posted: Mon Jan 23, 2023 9:55 am
by Edi
What do you need?
We had a discussion about MP3 files here:
Where should i place mp3 files
Re: MP3 player
Posted: Tue Jan 24, 2023 1:09 pm
by LRAM
Thank Edi
on the themes I use (portofolia and minima) The cover of each single is displayed. If I click on it, the page of the song opens, where I can put an mp3 player, the text of the songs ...
but then my listener has to click twice at least
I would like the player to be accessible from the home page, that each single would have its own player under the cover, even if I have to standardize the name and location of the mp3 for that
Re: MP3 player
Posted: Fri Jan 27, 2023 10:39 am
by Edi
Re: MP3 player
Posted: Sat Jan 28, 2023 9:08 am
by LRAM
Thank Edi
I'll check if I understand how to do that
Re: MP3 player
Posted: Sat Jan 28, 2023 3:09 pm
by Edi
Otherwise you can ask me.
Re: MP3 player
Posted: Sat Feb 11, 2023 6:25 pm
by LRAM
Bonjour Edi
Ok, i created the custom field, it was easier than I thought it would be.
so now, if I add {{ MP3 }} to my page I see a player that works. fine
https://sucrepop.com/Singles/would-you-be-my-valentine
but, what I want is to place it under the art cover of the song, not on the page
Where should I put this code now
thanks a lot
Re: MP3 player
Posted: Tue Feb 14, 2023 10:34 am
by Edi
Do you mean on the following page:
https://sucrepop.com/Singles/
Re: MP3 player
Posted: Tue Feb 14, 2023 5:51 pm
by LRAM
yes, each mp3 song under each art cover
thanks
Re: MP3 player
Posted: Tue Feb 14, 2023 8:03 pm
by Edi
You can use the same code for the loop in the file
home.php as in the file
page.php to include the player.
The loop in the file
home.php shows the "preview" of every page. It starts (line 8):
Code: Select all
<?php foreach ($content as $page) : ?>
And it ends (line 20):