Tagged: x
-
AuthorPosts
-
August 31, 2016 at 4:40 pm #1155783
BenMuzzaParticipantHi 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?
August 31, 2016 at 8:15 pm #1156058
FriechModeratorHi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Cheers!
August 31, 2016 at 8:51 pm #1156145
BenMuzzaParticipantThis reply has been marked as private.August 31, 2016 at 10:45 pm #1156236
Rue NelModeratorHello 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.
August 31, 2016 at 11:06 pm #1156257
BenMuzzaParticipantHey,
Very nice, thank you again for perfect support!
Thanks,
BenAugust 31, 2016 at 11:08 pm #1156264
FriechModeratorThanks for the kind words, we’re delighted to assist you with this.
Cheers!
September 18, 2016 at 2:28 am #1179957
lilyhazbun476ParticipantHey 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
September 18, 2016 at 3:33 am #1180001
Rue NelModeratorHello 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.
September 21, 2016 at 1:52 pm #1185204
lilyhazbun476ParticipantThanks 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>September 21, 2016 at 6:55 pm #1185556
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1155783 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
