Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: custom fields - youtube as textarea

custom fields - youtube as textarea 9 years 4 months ago #11294

Hi,

I wish to add movies as custom field in product pages but these are not displayed once added:

www.table-tennis.pl/produkty/sklep-stoly-tenisowe-profesjonalne/stol-do-tenisa-pro-800-adidas-table-tennis

On other pages that we own we have this function working flawlessly like: www.barefooters.pl/sklep-barefooters/classic/classic-cloud-white-barefooters see bottom of the page.

I have set a custom field as textarea or editor and pasted a link like that: <iframe width="853" height="480" src="//www.youtube.com/embed/U72AcbKSFPs" frameborder="0" allowfullscreen></iframe>

Please be so kind and help me solve this. thanks.

BR

Bart
The administrator has disabled public write access.

custom fields - youtube as textarea 9 years 4 months ago #11301

Hi,

Where do you wan to show the YouTube video? Inside the "Product Description" tab? (OPIS)

then why don't use the "Product Description" field to embed the youtube iframe? You don't need to use custom field just to embed youtube videos.

Product Description supports any HTML line (including iframe) but some WYSIWYG editor remove the iframe lines for security purposes. But you can easily disable this, so editor won't remove the iframe codes.

If you didn't install a 3rd party WYSIWYG editor, then you must be using TinyMCE, so navigate to here:

Plugins > Editor - TinyMCE

and see the "Prohibited Elements field", and replace:
script,applet,iframe
with
script,applet

so, TinyMCE won't remove the iframe HTML lines anymore. So you can place the "iframe" YouTube video anywhere you want (within the product description)

See the screenshot:

Attachment ScreenShot2014-11-15at3.35.42PM.png not found




Regards.
Last Edit: 9 years 4 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.209 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo