возможно ли вставить Second Feature Image видео?

Discussion in 'Themia WordPress Theme' started by angelastra, May 17, 2013.

  1. angelastra

    angelastra New Member

    Joined:
    May 16, 2013
    Messages:
    2
    Likes Received:
    0
    Возможно ли вставить "Second Feature Image" видео?
    Я знаю как ставить php код в "front-page.php", но тогда при обновление темы она удалиться. И тяжело изменять! Может вы знаете как проще реализовать эту проблему.
    Вот как я её реализовал!
    "front-page.php"
    Code:
    <?php if (inkthemes_get_option('inkthemes_img2') != '') { ?>
                            <img src="<?php echo inkthemes_get_option('inkthemes_img2'); ?>" alt="feature image"/>
                        <?php } else { ?>
     
     
    <object width="290" height="163"><param name="movie" value="http://www.youtube.com/v/AAAdcRbgoTM?version=3&amp;hl=ru_RU&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/AAAdcRbgoTM?version=3&amp;hl=ru_RU&amp;rel=0" type="application/x-shockwave-flash" width="290" height="163" allowscriptaccess="always" allowfullscreen="true"></embed></object>
     
     
                       
                        <?php } ?>
                        <p>
                            <?php if (inkthemes_get_option('inkthemes_feature2') != '') { ?>
                                <?php echo stripslashes(inkthemes_get_option('inkthemes_feature2')); ?>
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    You can use Child Theme of Themia Theme for this issue.
    Download the Child Theme attached with it and paste the edited front-page.php file of your Themia Theme in the given Child Theme and then upload it in your wordpress dashboard. Your change in php file of this child Theme will remain intact while you update the main Themia theme.
     

    Attached Files:

  3. angelastra

    angelastra New Member

    Joined:
    May 16, 2013
    Messages:
    2
    Likes Received:
    0
    скачиваться только файл размером в 1 kb????
    если я его заменяю то он не работает!
     

    Attached Files:

  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    Should not be removed the main theme, it is parent theme. So firstly uplaod the main Themia Theme and then upload the given Child Themia Theme and then install this child Theme but it required the Main theme should still present in your dashboard.
     

Share This Page