Jump to content

Changing the video link when changing language

Recommended Posts

  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

58 minutes ago, LuckyFilms said:

I made a website...with a german and english language option. However, we have two trailers (one in each language) and don't know how to have them switch when changing to english.

In summary, you'll need to add both videos to the page and then use some CSS to hide one or the other, conditional on the language that the user has selected.

The CSS will depend on they solution you have used for the bilingual feature (for example a third party tool like Weglot automatic translation, or manual translations and some custom code).

Please provide a link to the page if you'd like forum users to try to help you further.

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
  • 11 months later...

The same issue here and using Weglot. I am unable to comprehend the rationale behind the complexities involved in enabling or disabling video based on the language being translated.
Many videos on YouTube speak about the captions...where is this caption?

Edited by VIOO
-
Link to comment
On 2/16/2023 at 4:34 AM, paul2009 said:

In summary, you'll need to add both videos to the page and then use some CSS to hide one or the other, conditional on the language that the user has selected.

The CSS will depend on they solution you have used for the bilingual feature (for example a third party tool like Weglot automatic translation, or manual translations and some custom code).

Please provide a link to the page if you'd like forum users to try to help you further.

Did this help? Please give feedback by clicking an icon below  ⬇️

Paul, please give me an example of the CSS that needs to be added.
This should be added to the page as block & Code? Or in the Website tool --> Custom CSS ?

Thank you for your time and explanations.
 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.