Results 1 to 5 of 5

Thread: Embeded Videos- No longer functions

  1. #1
    Thread Starter
    justmotors's Avatar
    Join Date
    Mar 2014
    Location
    Ireland
    Posts
    333
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Embeded Videos- No longer functions

    Hi There,

    I was using the following code in the theme functions file in my last theme which allowed me to embed videos with something like this: [responsive-video identifier=gn7Jp1e41p4]

    However it doesnt seem to work with your child theme. Would there be any reason as to why it wont work?

    }

    // Register the Responsive Video shortcode to wrap html around the content
    function responsive_video_shortcode( $atts ) {
    extract( shortcode_atts( array (
    'identifier' => ''
    ), $atts ) );
    return '<div class="video-container"><iframe src="//www.youtube.com/embed/' . $identifier . '?showinfo=0&rel=0&autoplay=0" frameborder="0" allowfullscreen></iframe></div><!--video-container-->';
    }
    add_shortcode ('responsive-video', 'responsive_video_shortcode');



    // Register the Responsive Video shortcode to wrap html around the content
    function responsive_vimeo_shortcode( $atts ) {
    extract( shortcode_atts( array (
    'identifier' => ''
    ), $atts ) );
    return '<div class="video-container"><iframe src="//player.vimeo.com/video/' . $identifier . '?autoplay=0" frameborder="0" allowfullscreen></iframe></div><!--video-container-->';
    }
    add_shortcode ('responsive-vimeo', 'responsive_vimeo_shortcode');

    - - - Updated - - -

    Also in my last theme I used the following in the style sheets

    Style Sheet(child theme)
    /* responsive video */
    .video-container { position: relative; padding-bottom: 56.25%; margin: 15px 0 30px 0; height: 0; overflow: hidden; }
    .video-container iframe { position: absolute; top:0; left: 0; width: 100%; height: 100%; }
    li#cp_youtube_video, li#cp_vimeo_video { display: none; }




    Thanking you in advance
    Michael

  2. #2
    Thread Starter
    justmotors's Avatar
    Join Date
    Mar 2014
    Location
    Ireland
    Posts
    333
    Thanks
    1
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,749
    Thanks
    240
    Thanked 1,060 Times in 999 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    justmotors's Avatar
    Join Date
    Mar 2014
    Location
    Ireland
    Posts
    333
    Thanks
    1
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,749
    Thanks
    240
    Thanked 1,060 Times in 999 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Embeded Video
    By justmotors in forum Jibo
    Replies: 1
    Last Post: July 1st, 2014, 01:51 AM
  2. [SOLVED] Videos
    By justmotors in forum Simply Responsive
    Replies: 4
    Last Post: June 9th, 2014, 05:41 PM
  3. add embeded youtube code
    By tradeamillion in forum Vantage General Discussion (Legacy)
    Replies: 0
    Last Post: August 7th, 2013, 02:12 AM
  4. Videos
    By jamo in forum Report ClassiPress Bugs
    Replies: 34
    Last Post: September 25th, 2012, 05:34 PM
  5. Reasoning behind putting everything into functions and sub functions?
    By rodeoramsey in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: November 16th, 2011, 11:05 AM