+ Reply to Thread
Page 6 of 6 FirstFirst ... 456
Results 51 to 57 of 57

Thread: We demand an official technical support to hide the phone number !

  1. #51
    Quote Originally Posted by Rudi View Post
    Hello,

    Happy New Year!

    go to your template > css > style.css > add the following style:
    Code:
    Only registered members can view the code.
    and change in jquery code:
    Code:
    Only registered members can view the code.
    to:
    Code:
    Only registered members can view the code.
    Thanks Rudi, it works great for phone. But when I create another css for email the css doesn't work. Here is phone code works OK:

    <script>
    {literal}
    $(document).ready(function(){
    var phones = $('div[id*="phone"] .value a');

    $(phones).each(function(){
    var phone = $(this);
    var default_value = phone.text();
    var text = {/literal}'{$lang.click_to_view}'{literal};

    phone.text(text).removeAttr('href').toggleClass('m ask_number');
    phone.css('cursor', 'pointer').css('display', 'block');

    $(phone).filter('.mask_number').click(function(sho w){
    $(this).text(default_value);
    $(this).attr('href', 'tel:' + default_value).toggleClass('mask_number');

    show.preventDefault();
    $(phone).unbind('click').bind('click');
    });
    });
    });
    {/literal}
    </script>
    Here is email code similar, it hide the email with text OK, just the css display: none; not working

    <script>
    {literal}
    $(document).ready(function(){
    var emails = $('div[id*="email"] .value a');

    $(emails).each(function(){
    var email = $(this);
    var default_value = email.text();
    var text = {/literal}'{$lang.click_to_view}'{literal};

    email.text(text).removeAttr('href').toggleClass('m ask_text');
    email.css('cursor', 'pointer').css('display', 'block');

    $(email).filter('.mask_text').click(function(show) {
    $(this).text(default_value);
    $(this).attr('href', 'mailto:' + default_value).toggleClass('mask_text');

    show.preventDefault();
    $(email).unbind('click').bind('click');
    });
    });
    });
    {/literal}
    </script>
    Here is the css:
    .phone .value a,
    .email .value a {
    display: none;
    }
    Does email use different css?

  2. #52
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,114
    For email field use this style:

    Code:
    Only registered members can view the code.

  3. #53
    Quote Originally Posted by Rudi View Post
    For email field use this style:

    Code:
    Only registered members can view the code.
    Thanks Rudi,

    It works great

  4. #54
    Junior Member
    Join Date
    Dec 2018
    Location
    Hungary
    Posts
    2
    I changed the code to the one Wei Hong cited below your reply and it works now as it should.

    Thanks very much.

    Happy New Year Flynax Team and everyone on the forum!

  5. #55
    Where is the file located for this jquery code:

    phone.css('cursor', 'pointer');

  6. #56
    Quote Originally Posted by Robert Engelke View Post
    Where is the file located for this jquery code:

    phone.css('cursor', 'pointer');
    I am not exactly sure which one your after, but to give a bit of help, I did a quick search and it could be any of the these files:

    templates/your template/js/jquery.fancybox.source.js
    templates/your template/js/lib.js
    templates/your template/js/map_utility.js
    templates/your template/js/swiper.jquery.min.js
    templates/your template/js/jquery.fancybox.js

    Edit: My mistake you said jQuery code. Again, this was a quick search for the file that contain some of that code you provided.

    libs/jquery/jquery.ui.js
    libs/jquery/fancy.back.js
    libs/jquery/jquery.fancybox_source.js
    libs/jquery/colorpicker/css/colorpicker.css
    libs/jquery/colorpicker/index.html
    libs/jquery/fancybox/helpers/jquery.fancybox-buttons.css
    libs/jquery/fancybox/jquery.fancybox.css
    libs/jquery/slider/jslider.css
    libs/jquery/jquery.fancybox.js
    libs/jquery/jquery.qtip.js
    libs/jquery/jquery.jcrop.js

    * remember to replace your template in the path above with 'your template' name.
    Last edited by Brian Jester; May 18, 2019 at 12:37 AM.
    Thank you - Your Welcome
    Brian

  7. #57
    Member
    Join Date
    Jul 2019
    Location
    Australia
    Posts
    84
    im adding the code to the bottom of the file as per instruction. just wont hide the number. any help please?

+ Reply to Thread