Videos at bottom of K2 articles -- move to top?

GK User
Tue Dec 29, 2015 9:56 pm
I want to move the videos placed at the bottom of K2 articles using the Media Tab to appear at the top of my article, not the bottom. Is there an easy way to do this in a setting? If so, great. Please tell me where.

Or, if I must change something in the CSS, etc, please tell me what I must do.

Thanks!
Matt
User avatar
Fresh Boarder

teitbite
Thu Dec 31, 2015 6:28 pm
Hi

Please edit file /html/com_k2/templates/default/item.php find code:

Code: Select all
                              <?php if($params->get('itemVideo') && !empty($this->item->video)): ?>
                              <div class="itemVideoBlock" id="itemVideoAnchor">
                                     
                                        <?php if($this->item->videoType=='embedded'): ?>
                                        <div class="itemVideoEmbedded"> <?php echo $this->item->video; ?> </div>
                                        <?php else: ?>
                                        <span class="itemVideo"><?php echo $this->item->video; ?></span>
                                        <?php endif; ?>
                                        <?php if($params->get('itemVideoCaption') && !empty($this->item->video_caption)): ?>
                                        <span class="itemVideoCaption"><?php echo $this->item->video_caption; ?></span>
                                        <?php endif; ?>
                                        <?php if($params->get('itemVideoCredits') && !empty($this->item->video_credits)): ?>
                                        <span class="itemVideoCredits"><?php echo $this->item->video_credits; ?></span>
                                        <?php endif; ?>
                              </div>
                              <?php endif; ?>


cut if from where it is now and paste into new place in the same file.
User avatar
Moderator


cron