Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM backtop icon hides footer menu item

This topic contains 3 replies, has 2 voices, and was last updated by  Anna 3 years ago.

  • Author
    Posts
  • #82938

    Jos Deuling

    Hi,

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

    Thanks,

    Jos.

  • #83554

    Anna
    Keymaster

    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 3 years ago by  Anna.
  • #83680

    Jos Deuling

    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.

  • #83777

    Anna
    Keymaster

    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.