In product details page I have video related to the product along with the thumbnail images. The video always comes at the last. I want to display the video as second link in the thumbnail images. What changes should I do to do that?
I get the video through attribute at backend. This is my code to display it in details page:
<?php if($_product->getVideoEmbeded()): ?>
<div id="video_frame" style="display: none;width: 100%; overflow: hidden; position: absolute;top: 0;left: 0;"><?php echo $_product->getVideoEmbeded(); ?></div>
<?php endif; ?>
And here is the code to change the base image with the video:
<?php if($_product->getVideoEmbeded()): ?>
<li class="item"><a href="javascript:void(0)" onClick="changemainimage('<?php echo $prurl ?>','vdionly')" class="video_link " id="video_link"></a> </li>
<?php endif; ?>