Quantcast
Channel: EasyEngine Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 12639

Is there a way to disable the rtMedia lightbox description/meta box for non-logged in users

$
0
0

Hello @Simon_Matthews,

Oh yes, for non-logged in users the condition will be used in reverse. You can use !is_user_logged_in() condition.

For example :

add_action( 'init', 'custom_function_hide_lightbox_meta' );
function custom_function_hide_lightbox_meta() {
   if( !is_user_logged_in() ) {
        ?>
        <style>
             .rtmedia-single-container .rtm-lightbox-container .rtmedia-single-meta {
                  display:none;
             }
             #rtmedia-single-media-container {
                   width: 100%;
             }
       </style>
        <?php
    }
}

Thank you.


Viewing all articles
Browse latest Browse all 12639

Trending Articles