![]() |
|
Clickable area around embedded YouTube videos - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Clickable area around embedded YouTube videos (/thread-10412.html) |
Clickable area around embedded YouTube videos - meegja - 2012-09-15 I am using the .txt method to display embedded YouTube videos with thumbnail and that works great. Thanx in advance, Clickable area around embedded YouTube videos - acrylian - 2012-09-15 I am not familiar with this theme, it probably might wrap all images within a ``tag. Then any format will get that. We use that ourselves and there is no clickable area: ` Clickable area around embedded YouTube videos - meegja - 2012-09-15 I am a total noob with PHP so that code is like abracadabra for me ` ` About the code you did give, where do I place that? Clickable area around embedded YouTube videos - acrylian - 2012-09-15 Youtube videos or else are always within an iFrame, that is what Youtube actually provides nowadays. Since the text-object trick is not originally meant for youtube videos all are treated the same within a block that follows the image size settings. Why that would be clickable I cannot answer it is not for me in our theme and the code above is not really that special. Clickable area around embedded YouTube videos - meegja - 2012-09-16 Mmm don't know what is going on then. Even when I use the Zenphoto default theme, I have the same problem: within the Theme options you have to set a default image size and that size is clickable with the embedded videos. Did try it with Firefox and IE but both have the same. Menno Clickable area around embedded YouTube videos - fretzl - 2012-09-16 Try changing the embedded iframe width and height. Clickable area around embedded YouTube videos - meegja - 2012-09-16 @fretzl Clickable area around embedded YouTube videos - acrylian - 2012-09-16 I was referring to our site's custom theme though. The default theme indeed has the image enclosed in a link as the "main" purpose is showing "real" images and this is meant to link to the full image. Since the text objects are just an extra "image" format they have that as well. I don't know the theme you are using specifially but you will have to modify it. Clickable area around embedded YouTube videos - meegja - 2012-09-16 Found a workaround (I think) Problem solved. Thanx for thinking with me Clickable area around embedded YouTube videos - slammin - 2013-01-24 I know this an older post, but I thought I'd post the solution for those still searching. Simply delete "display:block" from class-textobject_core.php. There will no longer be scroll bars or a 'clickable area' YAY! Hope this helps Clickable area around embedded YouTube videos - acrylian - 2013-01-24 Why do you post the same twice? See the other topic for the best practice answer. The clickable area is because text objects are shown in the place of the sized images. Those are in all standard themes generally linked to the full image. |