Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1155783
    BenMuzza
    Participant

    Hi there,

    I’m currently setting up a video post editorial site that will use Youtube videos as posts. The post page itself actually looks nice: http://www.soflo.co/beta/cutting-peoples-hair-for-free-pranks-gone-wrong/

    However, on the homepage we don’t want it to play videos from the thumbnails: http://www.soflo.co/beta/

    Can we set this to a static thumbnail image of some sort?

    #1156058
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Cheers!

    #1156145
    BenMuzza
    Participant
    This reply has been marked as private.
    #1156236
    Rue Nel
    Moderator

    Hello There,

    Thank you for the detailed information. To resolve this issue, since you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT-VIDEO.PHP
    // -----------------------------------------------------------------------------
    // Video post output for Renew.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
        <?php x_get_view( 'renew', '_content', 'post-header' ); ?>
    
    	<?php if ( has_post_thumbnail() && ! is_single() ) : ?>
    	  <div class="entry-featured">
    	    <?php x_featured_image(); ?>
    	  </div>
    	<?php else : ?>
    	  <div class="entry-featured">
    	    <?php x_featured_video(); ?>
    	  </div>
    	<?php endif; ?>
    
        <?php if ( is_single() ) : ?>
          <?php x_get_view( 'global', '_content', 'the-content' ); ?>
          <?php x_get_view( 'renew', '_content', 'post-footer' ); ?>
        <?php endif; ?>
      </div>
    </article>

    3] Save the file named as content-video.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/renew/

    Please let us know if this works out for you.

    #1156257
    BenMuzza
    Participant

    Hey,

    Very nice, thank you again for perfect support!

    Thanks,
    Ben

    #1156264
    Friech
    Moderator

    Thanks for the kind words, we’re delighted to assist you with this.

    Cheers!

    #1179957
    lilyhazbun476
    Participant

    Hey guys, it seems like Ben got just the right solution. I actually wanted to do the same thing and I even tried to do it but because I’m using the Integrity stack I couldn’t make it work. I am also using the child theme already. Would you be so kind to provide me with the right corrections> Here’s what I have in my /wp-content/themes/x-child/framework/views/integrity/content-video.php file>>

    
    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT-VIDEO.PHP
    // -----------------------------------------------------------------------------
    // Video post output for Renew.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
        <?php x_get_view( 'integrity', '_content', 'post-header' ); ?>
    
    	<?php if ( has_post_thumbnail() && ! is_single() ) : ?>
    	  <div class="entry-featured">
    	    <?php x_featured_image(); ?>
    	  </div>
    	<?php else : ?>
    	  <div class="entry-featured">
    	    <?php x_featured_video(); ?>
    	  </div>
    	<?php endif; ?>
    
        <?php if ( is_single() ) : ?>
          <?php x_get_view( 'global', '_content', 'the-content' ); ?>
          <?php x_get_view( 'integrity', '_content', 'post-footer' ); ?>
        <?php endif; ?>
      </div>
    </article>
    

    Thanks in advanced

    #1180001
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating this thread! If you want something the same but using with Integrity stack, please use this instead:

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/CONTENT-VIDEO.PHP
    // -----------------------------------------------------------------------------
    // Video post output for Integrity.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <?php x_get_view( 'integrity', '_content', 'post-header' ); ?>
    
    	<?php if ( has_post_thumbnail() && ! is_single() ) : ?>
    	  <div class="entry-featured">
    	    <?php x_featured_image(); ?>
    	  </div>
    	<?php else : ?>
    	  <div class="entry-featured">
    	    <?php x_featured_video(); ?>
    	  </div>
    	<?php endif; ?>
      
      <?php if ( is_single() ) : ?>
        <div class="entry-wrap">
          <?php x_get_view( 'global', '_content' ); ?>
        </div>
        <?php x_get_view( 'integrity', '_content', 'post-footer' ); ?>
      <?php endif; ?>
    
    </article>

    We would loved to know if this has work for you. Thank you.

    #1185204
    lilyhazbun476
    Participant

    Thanks for the reply Rue, unfortunately it kind of mess with the integrity layout.
    Here’s what worked for me:

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/CONTENT-VIDEO.PHP
    // -----------------------------------------------------------------------------
    // Video post output for Integrity.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-featured">
     <?php if ( is_single() ) : ?>
        <?php x_featured_video(); ?>  
        <?php else : ?>
        <?php x_featured_image(); ?>
         <?php endif; ?>
      </div>
      <div class="entry-wrap">
        <?php x_get_view( 'integrity', '_content', 'post-header' ); ?>
        <?php x_get_view( 'global', '_content' ); ?>
      </div>
      <?php x_get_view( 'integrity', '_content', 'post-footer' ); ?>
    </article>
    
    #1185556
    Rad
    Moderator

    Hi there,

    Please try this instead,

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/CONTENT-VIDEO.PHP
    // -----------------------------------------------------------------------------
    // Video post output for Integrity.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-featured">
     <?php if ( is_singular('post') ) : ?>
        <?php x_featured_video(); ?>  
        <?php else : ?>
        <?php x_featured_image(); ?>
         <?php endif; ?>
      </div>
      <div class="entry-wrap">
        <?php x_get_view( 'integrity', '_content', 'post-header' ); ?>
        <?php x_get_view( 'global', '_content' ); ?>
      </div>
      <?php x_get_view( 'integrity', '_content', 'post-footer' ); ?>
    </article>

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1155783 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>