Возможно ли вставить "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&hl=ru_RU&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&hl=ru_RU&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')); ?>
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.
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.