Keyword

Use Both Classic and Responsive Template

  • Christopher Hepp
  • Christopher Hepp's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #155238 by Christopher Hepp
Use Both Classic and Responsive Template was created by Christopher Hepp
I'm in the process of converting my site from fixed width to responsive. I have a few dozen YouTube videos on my site that are working fine using the responsive template. I also have dozens of "videos" posted on YouTube that are actually just audio files with a static image displayed due to space restrictions our hosting account. In the static site I used the YouTube tags and set the dimensions to 150x200. This, of course does not work with the Responsive template.

I've tried to constrain the size of the audio only YouTube files by setting a DIV with 150x200 size, but the video busts out the sides of the DIV and ignores the height (I think it may be because of the title of the file). I tried a variety of different CSS settings, which work for things like padding, but the width and height are ignored.

1. Is it possible to assign a template to an individual file? For example, leave the default as using the Responsive template but forcing individual videos to use the Classic template?

2. Is it possible to use a player similar to the MP3 tag to play only the audio from the YouTube video?

3. Is there anyway to successfully override the size of the YouTube template using CSS?

Thanks

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #155439 by Krikor Boghossian
Replied by Krikor Boghossian on topic Use Both Classic and Responsive Template
Hello,

Unfortunately you cannot use two templates.
You can use the mp3 player but unfortunately when you use the youtube snippet, YouTube's video player will automatically trigger.

You can override the size of the videos in the Responsive template with CSS. However this will apply to all published videos. Let me know if you need more instructions.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum