April 19, 2021 at 3:06 pm #8612speedographSupported
In the video style 1, there are some options like Image Gallery, Awards, Partners… Is it possible to replace the image gallery section for video previews/trailers section?
In fact, i would like to keep the way this section look but instead of loading image in a light box on click, i would like to open a Youtube video light box (just like the section at the bottom “You may also like this”.
I have to add some related previews in each video pages and the actual style doesn’t give me this option.
If you have a solution or suggestions, that will be appreciated.
Thank you!April 19, 2021 at 3:38 pm #8613
Thanks for contacting us and choosing our product!
Now you can customize template display of single video via child theme follow this topic:
In this case the template file is: wp-content/themes/formota/templates/single/video-style_1.php
You can change layout or add any content here.
If you want to add more field you can follow this:
Hope this helps!
PS: If you want us to do customize as your requirement please suggest us an custom project!
HaruThemeApril 20, 2021 at 2:23 am #8616speedographSupportedThis reply has been marked as private.April 21, 2021 at 8:35 am #8617
We don’t support for customize as requirement because it’s need much time (not quickly as you said)!
In this case you can use a solution select other Videos (not insert video ID) by add the code in theme-metabox.php as topic tutorial above:
array( 'id' => 'haru_video' . '_videos', 'name' => esc_html__( 'Videos Gallery', 'formota' ), 'desc' => esc_html__( 'Videos Gallery of Video.', 'formota' ), 'type' => 'post', // Post type 'post_type' => 'haru_video', // Field type, either 'select' or 'select_advanced' (default) 'field_type' => 'select_advanced', 'placeholder' => esc_html__( 'Select Videos', 'formota' ), // Query arguments (optional). No settings means get all published posts 'multiple' => true, 'query_args' => array( 'post_status' => 'publish', 'posts_per_page' => - 1, ), ),
Then display it use template:
<?php $video_videos_ids = get_post_meta( get_the_ID(), 'haru_video' . '_videos', false ); // Array if ( isset($video_videos_ids) && !empty($video_videos_ids) ) : ?> <div class="video-videos"> <h6 class="info-title"><?php echo esc_html__( 'Videos Gallery', 'formota' ); ?></h6> <div class="video-list"> <?php foreach( $video_videos_ids as $video_video_id) : // Can change to false get_post_meta for shorter code $video_video = get_post( $video_video_id ); $video_video_link = get_post_permalink( $video_video_id ); ?> <a href="<?php echo esc_url($video_video_link); ?>"><?php echo esc_html($video_video->post_title); ?></a> <?php endforeach; ?> </div> </div> <?php endif; ?>
You need to add CSS code too.
If you want to code these function and check we need ~2 hours and price for per hour is 20$. You also can follow our tutorial to add anything you want. That’s better in this case.
Hope this helps!
You must be logged in to reply to this topic.