Support › Forums › Cian – WP Theme › Add a youtube video the the site
Tagged: youtube
- This topic has 5 replies, 2 voices, and was last updated 7 years, 8 months ago by CreaboxThemes.
-
AuthorPosts
-
July 17, 2016 at 6:02 am #5410Antonio AgudoParticipant
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?
July 18, 2016 at 9:36 am #5414CreaboxThemesKeymasterHi,
are you the user keyboardsamurai from Themeforest?
Regards
July 18, 2016 at 9:38 am #5416Antonio AgudoParticipantYes I am 🙂
July 18, 2016 at 11:16 pm #5420CreaboxThemesKeymasterHi,
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.
July 19, 2016 at 6:57 am #5422Antonio AgudoParticipantI see. Without the animation it works fine. Thank you.
July 19, 2016 at 6:26 pm #5423CreaboxThemesKeymasterGreat 😉
-
AuthorPosts
- You must be logged in to reply to this topic.