This topic has 3 replies, 2 voices, and was last updated 8 years by Riccardo Rossini.

  • Author
  • #117038
     Riccardo Rossini
    Participant

    I would like to hide a specific class to subscribers, I added this code (as well as it is written below) in my functions.ph but it creates conflicts in my site: replace of thumnails of the images and problems with lightbox view.
    Can you help me please? It seems that style option creats problems, is there an alternative way?
    Thanks in advance

    if( current_user_can(‘administrator’) ) { } else {
    echo ‘
    <style>
    .rtmedia-editor-attributes {display:none !important;}
    </style>
    ‘;
    }

    #117039
     Riccardo Rossini
    Participant
    COPY CODE
    if( current_user_can('administrator') ) {  } else {
    echo '
    <style>
    .rtmedia-editor-attributes {display:none !important;}
    </style>
    ';
    }
    #117590
     Laura
    Moderator

    Hello, try adding this to header.php ( copy header.php and paste it at child theme, then edit it)

    COPY CODE
    
    <?php  if( current_user_can(‘administrator’) ) { } else {  ?>
    <style  type="text/css" media="screen">
    .rtmedia-editor-attributes {display:none !important;}
    </style>
    <?php } ?>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #117782
     Riccardo Rossini
    Participant

    Thanks!!

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?