Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1073978
How to Hide your Email Address on Web Pages
Closed

Comments

  •  2
    bander234 started the conversation

    How to Hide your Email Address from Top Area Contacts ? 

    Where and how can i add CSS and/or JavaScript based techniques that will help me hide my email address from email harvesting bots that scrap web pages ?

  •  433
    Sergio replied

    HI!

    pls. use following css:

    .gem-contacts-item.gem-contacts-email{
       display:none!important;
    }

     

    If you’re happy with our theme, please rate us with 5 stars on Themeforest. It keeps us motivated!  (How to rate).

    Regards Sergio Codex.

  •  2
    bander234 replied

    Maybe i explained it wrong. I dont want it to disappear completely just show something else on the screen instead of the mail i want to have 'mailto' for example

  •  433
    Sergio replied

    Hi, sorry, not quite sure what do you mean. Can you pls provide more details with screenshots?

    If you’re happy with our theme, please rate us with 5 stars on Themeforest. It keeps us motivated!  (How to rate).

    Regards Sergio Codex.

  •  2
    bander234 replied

    When i inserted your suggested code the email disappeared completely. I want it to be clickable but instead of showing [email protected]   it should show something like email_us

  •  433
    Sergio replied

    Hi,

    Crawlers collected at mailto address, on the modification of the text will not help. But if you need it, you can fix

    function thegem_top_area_contacts()   in the file /wp-content/themes/thegem/inc/content.php

    if(thegem_get_option('top_area_contacts_email')) {
            $output .= '<div class="gem-contacts-item gem-contacts-email"><a href="'.esc_url('mailto:'.sanitize_email(thegem_get_option('top_area_contacts_email'))).'">'.sanitize_email(thegem_get_option('top_area_contacts_email')).'</a></div>';
        }

    If you’re happy with our theme, please rate us with 5 stars on Themeforest. It keeps us motivated!  (How to rate).

    Regards Sergio Codex.