• Jos Deuling
    September 14, 2014 at 11:52 am #82938

    Hi,

    How can I disable the backtop function? The icon hovers over the first footer menu item.

    Thanks,

    Jos.

    Anna
    September 15, 2014 at 8:00 am #83554

    Hi Jos

    Try this (it’s not tested yet)

    go to js/control_js and delete this code

        ///////////////////////////////////////////////////////////////////////////////////////////
        ///////   back to top
        ///////////////////////////////////////////////////////////////////////////////////////////	       
               
             
         $('.backtop').click(function(event){
             event.preventDefault();
      
             $('body,html').animate({
                    scrollTop: 0
              }, "slow");
    
         })    
    • This reply was modified 2 years, 4 months ago by  Anna.
    Jos Deuling
    September 15, 2014 at 12:34 pm #83680

    Hi Anna,

    Thanks for the tip. I tested it but it didn’t work. The following patch did the job:

    jQuery(window).scroll(function ($) {
    “use strict”;
    var scroll = jQuery(window).scrollTop();
    if (scroll >= 100) {
    if (!Modernizr.mq(‘only all and (max-width: 1025px)’)) {
    jQuery(‘.logo’).addClass(‘miclogo’);
    jQuery(“.header_wrapper”).addClass(“navbar-fixed-top”);
    jQuery(“.header_wrapper”).addClass(“customnav”);
    jQuery(‘.contact-box’).addClass(‘islive’);
    jQuery(‘.backtop’).addClass(‘islive’);
    jQuery(‘.barlogo’).show();
    jQuery(‘#user_menu_open’).hide();

    }
    } else {
    jQuery(“.header_wrapper”).removeClass(“navbar-fixed-top”);
    jQuery(“.header_wrapper”).removeClass(“customnav”);
    jQuery(‘.contact-box ‘).removeClass(‘islive’);
    jQuery(‘.backtop’).removeClass(‘islive’);
    jQuery(‘.contactformwrapper’).addClass(‘hidden’);
    jQuery(‘.barlogo’).hide();
    jQuery(‘#user_menu_open’).hide();
    jQuery(‘.logo’).removeClass(‘miclogo’);
    }
    });

    The backtop icon is absent on http://www.wpresidence.net. Is it save to assume that this function will be removed from a new release of your theme? I don’t want to change the plugin code.

    Best Jos.

    Anna
    September 15, 2014 at 4:38 pm #83777

    Hi Jos

    Thank you for the follow up.

    In demo the up arrow missing was a mistake 🙂 It’s always on. So we added back in demo.

    Thank you,
    Anna

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.