StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 10-09-2009, 12:14 PM
richardantondiaz richardantondiaz is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2008
Location: New York City
Posts: 94
Default Can Video & Image Option Coexist without Toggling?

The way in which the Demo shows with Homepage holding a Video Homepage as a link?
  #2  
Old 10-10-2009, 04:31 AM
adew adew is offline
Community Moderator
 
Join Date: Oct 2008
Location: Genève, Suisse
Posts: 14,270
Default Re: Can Video & Image Option Coexist without Toggling?

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>
and replace it with this:
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  
Old 10-14-2009, 06:55 PM
olaoluwa olaoluwa is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 14
Default Re: Can Video & Image Option Coexist without Toggling?

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 05:27 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.