Help pleae (code)

Hello i am trying to insert a code in my home page , a code that will make all widgets invisivable on homepage start and when people scroll down to menu the widgets appear after scrolling,
i have put this code:

this “settings-btn-ila” is the ID for the accesibility, i am trying to test that only on that widget for now, and as a result , what it does it make this widget dissapear forever, what have i done wrong in this code? any suggestions will be welcome!

Hello There,

Try this JS code instead

jQuery(document).ready(function($){
	$(window).scroll(function(){
		if ($(this).scrollTop() >  1) {
			
			$('#settings-btn-ila').addClass('user-scroll ');
		} else {
			$('#settings-btn-ila').removeClass('user-scroll ');
		}
	});
});

If this doesn’t work, please do share URL where you have implemented the code. Thank you.

1 Like

i have insert the code in normal text, in raw text content and in js place in cornerstone, none of the attempts worked.
i am trying to make the marketed elements to be invisivable when loading homepage and whenever scrolling down they will be visible to the users.
attaching screenshot in secure note and login redentials of the page

Hi There,

There’s a JS error on the page which is pointing to the following code:

jQuery(document).scroll(function($) {
  var y = $(this).scrollTop();
  if (y > 665) {
    $('.wp-side-menu').fadeIn();
  } else {
    $('.wp-side-menu').fadeOut();
  }
});

Try to remove that code and then check again. Also make sure that ID is added on the correct element. See below. It’s not added on the icon but rather on input element that is hidden:

Let us know how this goes.

i have tried what you told me and it just wont work

Hi there,

I am so sorry to inform you that this is not a case that we can be of a help. This is a complete customization case which is way beyond our support scope and it is not offered in the theme out of the box. My colleague did her best to give you possible solutions but it is not something that we can help you with unfortunately.

I suggest that you hire a developer to do the customization for you. I also did a Google Search which I think can be of a help on your research.

Thank you for your understanding.

why is it out of your support scope, i did hire a developer and he said he cant help and that i need to contact the theme support,

Hi there,

We already explained about the case in another thread you opened up but the bottom line is that you want a feature which is not available in our theme.

We can not customize the theme to accommodate your out of the box needs and as I mentioned before you need to contact developer. The developer you worked with seems to be unprofessional, try to find one with the experience to do the functionality.

You can read the What is considered a customization request? section of our Terms of service which exactly mentions the customization point:

Thank you for your understanding.

i dont get it, you helped me before in a customizations requests in the past, how come you cant help me on this one? i bought this theme because of the support for 6 months so you could help me and guide me build my website and now you tell me to hire an external developer? i dont have all the money in the world

Hi there,

We provide supports for the theme features and its issues or bugs, but we don’t provide support for any customization. We don’t cover custom development.

We do provide some custom code as snippet especially the simple one, but it’s not part of the theme to be supported. It’s just a bit of help so users could get started and it’s their responsibility to maintain and enhance the code according to their preference.

Thanks for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.