• Hello,
    Here is the website
    http://www.kfupm-strategylab.org/glutenfree/

    as you can see in the homepage, you will find a youtube link. However, I want to show the video instead of only link. How can I do it?

    `<?php

    echo ‘<div class=”header-content-wrap”>’;

    echo ‘<div class=”container”>’;

    $zerif_bigtitle_title = get_theme_mod(‘zerif_bigtitle_title’,__(‘To add a title here please go to Customizer’,’zerif-lite’));

    if( !empty($zerif_bigtitle_title) ):

    endif;
    echo ‘<h1 class=”intro-text”>’.__($zerif_bigtitle_title,’zerif-lite’).'</h1>’;
    echo ‘<h6 class=”white-text”>هو مشروع متكامل يهدف إلى معالجة مرض السلياك بطريقة إبداعية عن طريق دمج نظريات الإدارة الاستراتيجية بالواقع</h6>’;
    echo ‘<h6 class=WP_Embed>https://www.youtube.com/embed/Tw2QdKxGYJQ?rel=0</h6>&#8217;;

    $zerif_bigtitle_redbutton_label = get_theme_mod(‘zerif_bigtitle_redbutton_label’,__(‘One button’,’zerif-lite’));

    $zerif_bigtitle_redbutton_url = get_theme_mod(‘zerif_bigtitle_redbutton_url’,’#’);

    $zerif_bigtitle_greenbutton_label = get_theme_mod(‘zerif_bigtitle_greenbutton_label’,__(‘Another button’,’zerif-lite’));

    $zerif_bigtitle_greenbutton_url = get_theme_mod(‘zerif_bigtitle_greenbutton_url’,’#’);

    if( (!empty($zerif_bigtitle_redbutton_label) && !empty($zerif_bigtitle_redbutton_url)) ||

    (!empty($zerif_bigtitle_greenbutton_label) && !empty($zerif_bigtitle_greenbutton_url))):

    echo ‘<div class=”buttons”>’;

    if ( !empty($zerif_bigtitle_redbutton_label) && !empty($zerif_bigtitle_redbutton_url) ):

    echo ‘‘.__($zerif_bigtitle_redbutton_label,’zerif-lite’).’‘;

    endif;

    if ( !empty($zerif_bigtitle_greenbutton_label) && !empty($zerif_bigtitle_greenbutton_url) ):

    echo ‘‘.__($zerif_bigtitle_greenbutton_label,’zerif-lite’).’‘;

    endif;

    echo ‘</div>’;

    endif;

    echo ‘</div>’;

    echo ‘</div><!– .header-content-wrap –>’;

    echo ‘<div class=”clear”></div>’;

    ?>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to embed video in php file’ is closed to new replies.