Home Forums Themes Support Formota Remove the play-symbol from Productions with no trailer

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9567
    velourfilm
    Supported

    Hi!

    Is there a way to remove the play-symbol in the thumbnail and on the video-page from productions that doesn’t have a trailer?

    See the two screenshots.

    Kind regards
    Velourfilm.se

    Attachments:
    You must be logged in to view attached files.
    #9569

    Hi,
    Thanks for choosing our product!
    About this issue you need customize PHP code.
    1. About single video page you need go to: wp-content/themes/formota/templates/single/ then open file video-style_1.php or other file depend on style you choose at backend.
    Find and change the code from:

    <div class="video-icon">
                    <a href="javascript:;" class="view-video-button" data-id="<?php echo esc_attr( the_ID() ); ?>" data-player="<?php echo esc_attr( $player_js ); ?>" data-server="<?php echo esc_attr( $video_server ); ?>"></a>
                </div>

    to

    <?php
                    $video_server_id  = get_post_meta( get_the_ID(), 'haru_video' . '_id', true );
                    if ( $video_server_id == '' ) :
                ?>
                <div class="video-icon">
                    <a href="javascript:;" class="view-video-button" data-id="<?php echo esc_attr( the_ID() ); ?>" data-player="<?php echo esc_attr( $player_js ); ?>" data-server="<?php echo esc_attr( $video_server ); ?>"></a>
                </div>
                <?php endif; ?>
    

    2. Similar you can open: wp-content/plugins/haru-formota-core/templates/posttypes/video/video-style/style_1.php or other style depend on your settings.
    Find the code

    <div class="video-icon">
                    <a href="javascript:;" class="view-video-button" data-id="<?php echo esc_attr( the_ID() ); ?>" data-player="<?php echo esc_attr( $player_js ); ?>" data-server="<?php echo esc_attr( $video_server ); ?>"></a>
                </div>

    and replace to:

    
    <?php
                    $video_server_id  = get_post_meta( get_the_ID(), 'haru_video' . '_id', true );
                    if ( $video_server_id == '' ) :
                ?>
                <div class="video-icon">
                    <a href="javascript:;" class="view-video-button" data-id="<?php echo esc_attr( the_ID() ); ?>" data-player="<?php echo esc_attr( $player_js ); ?>" data-server="<?php echo esc_attr( $video_server ); ?>"></a>
                </div>
                <?php endif; ?>

    You can do it via child theme follow this topic: https://harutheme.com/forums/topic/customize-wordpress-theme-using-child-theme/
    Hope this helps!

    ****
    Regards,
    HaruTheme

    • This reply was modified 3 months ago by admin.
    • This reply was modified 3 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.