Add a youtube video the the site

Support Forums Cian – WP Theme Add a youtube video the the site

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5410
    Antonio Agudo
    Participant

    I am trying to use an embedded (iframe with regular youtube html5 player) youtube video on the home page. I don’t mean the fullscreen background video option, just a regular video.

    1. Is there a page or element that allows me to just paste the embed code into?

    2. If there is not, and I just paste the embed code into spotlight-1.php the fullscreen button of the embedded player maximizes Chrome 51.0.2704.106 (Mac & Windows), but not the video itself. What could be the reason for that?

    #5414
    CreaboxThemes
    Keymaster

    Hi,

    are you the user keyboardsamurai from Themeforest?

    Regards

    #5416
    Antonio Agudo
    Participant

    Yes I am 🙂

    #5420
    CreaboxThemes
    Keymaster

    Hi,

    it is a conflict with the animations. If you check this option in Firefox or Safari, it works fine. The problem only happens in Chrome.

    To resolve it, you can disable the animations in the page Appearance > Theme Options, the second option. Or you can edit the file spotlight-1.php from the Theme editor. You have to go to the page Appearance > Editor and select the file spotlight-1.php (sections/spotlight-1.php). Then, copy the next code and paste it in the editor (from the line 13 to 31):

    
    <!-- ==============================================
    	SPOTLIGHT 1
    	=============================================== -->
    	<section id="spotlight1">
    		<div class="container">
    			<div class="row">
    				<div class="col-md-3 col-sm-5 col-md-offset-1">
    					<h3><?php echo vp_metabox('vp_meta_spotlight_1.spotlight_1_sep_group.0.title', false, $sectionPageID); ?></h3>
    					<p><?php echo vp_metabox('vp_meta_spotlight_1.spotlight_1_sep_group.0.text', false, $sectionPageID); ?></p>
    					<?php if ( vp_metabox('vp_meta_spotlight_1.spotlight_1_sep_group.0.button_link_enable', false, $sectionPageID) == true) {?>
    						<a class="btn btn-default spotlight-link" href="<?php echo esc_url(vp_metabox('vp_meta_spotlight_1.spotlight_1_sep_group.0.button_link_url', false, $sectionPageID)) ?>"><?php echo vp_metabox('vp_meta_spotlight_1.spotlight_1_sep_group.0.button_link_text', false, $sectionPageID); ?></a>
    					<?php } ?>
    				</div> <!-- end spotlight description -->
    				<figure class="col-md-7 col-sm-7" >
    					<img class="img-responsive spot1-img" src="<?php echo esc_url(vp_metabox('vp_meta_spotlight_1.spotlight_1_sep_group.0.spotlight_1_image', false, $sectionPageID)) ?>" alt="" title="">
    				</figure>
    			</div> <!-- END ROW -->					
    		</div> <!-- END CONTAINER -->
    	</section> <!-- END SPOTLIGHT1 SECTION -->
    

    Regards

    • This reply was modified 7 years, 8 months ago by CreaboxThemes.
    #5422
    Antonio Agudo
    Participant

    I see. Without the animation it works fine. Thank you.

    #5423
    CreaboxThemes
    Keymaster

    Great 😉

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.