Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1065886

    I need to have a random youtube video in 2 places.

    1- Homepage
    I added a video in builder, pasted the Youtube URL and the video shows there.

    2- After related posts in single.php

    After get_template_part( 'includes/related-posts');

    I have a simple iframe with a Youtube video like this:

    <iframe src="https://www.youtube.com/embed/XXXXXXX" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    What I need is to show exactly the same in both places, “BUT” with random videos.

    Let’s say to have a list of 10 youtube URL codes for videos, (“XXXXXXX” above) and show them randomly in both places.

    How can I achieve that ?

    Thank you.

    #1067138

    Hey peterolle,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #1067354

    Thank you, I already solved this.

    #1067373

    And sometimes other participants can learn from each other. Maybe you present your solution.

    #1067378

    I know, the problem is that it is not a line to make things work, I custom made things using some plugins and code functions in the theme and in a template. No easy to just post it.

    #1067423

    Where there’s a will, there’s a way.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.