![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
The way in which the Demo shows with Homepage holding a Video Homepage as a link?
|
|
#2
|
|||
|
|||
|
The short answer is no. However, it is possible to modify page_video.php so that you can use it as a more traditional page template for displaying videos.
Find this code in page_video.php: Code:
<div class="hpmain">
<div class="hpmainleft">
<?php $recent = new WP_Query('page_id='.get_theme_mod('hp_main')); while($recent->have_posts()) : $recent->the_post();?>
<h2><?php the_title(); ?></h2>
<?php the_content_limit(600, ""); ?>
<?php _e("Read more", 'studiopress'); ?></p>
<?php endwhile; ?>
</div>
<div class="hpmainright">
<?php // start code which figures out whether to show image or video ?>
<?php if(get_theme_mod('video') == 'Yes') { ?>
<?php echo get_custom_field('_video_code'); ?>
<?php } else { ?>
[img]<?php bloginfo('template_url'); ?>/images/sample.jpg[/img]" />
<?php } ?>
<?php // end code ?>
</div>
</div>
Code:
<div class="hpmain">
<div class="hpmainleft">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content_limit(600, ""); ?>
<?php _e("Read more", 'studiopress'); ?></p>
</div>
<div class="hpmainright">
<?php // get video code ?>
<?php get_custom_field('_video_code'); ?>
<?php endwhile; endif; ?>
</div>
</div>
__________________
Ade Themessence - Studiograsshopper WordPress plugins: Dynamic Content Gallery | Reveal Page Templates | Custom Taxonomies Menu Widget Check out the Genesis and Child Theme tutorials before posting your question - and please provide YOUR URL! Make Andrea happy - read her Firebug tutorial and save yourself loads of time and effort. |
|
#3
|
|||
|
|||
|
Thanks for the hack. However, this still leaves the lower section, below the video (where you have the Company News as in http://www.studiopress.com/demo/executive.html) unchanged.
How do you change the images to videos? I am aware of the Theme Options, but when you modify the Homepage, it replicates with the Video Page as well. I just want to replicate the Main Homepage (with images) and Video Homepage (with videos) as in demo: http://www.studiopress.com/demo/executive.html |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| remove image/video option ? | Mumof8 | General Discussion | 5 | 03-02-2010 12:35 PM |
| Revolution option - Youtube video code doesn't work | Greek | General Discussion | 4 | 12-02-2008 05:08 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us