Sticky Sidebar: data-component="sticky"

The default behavior (listinghive theme) is there’s a sidebar on listings. The sidebar contains information about the account that posts the listing, and is “sticky”. The sticky feature uses JS, so not easily overridden with CSS. It looks like ‘data-component="sticky’ on the element is attaching the JS event, but removing ‘data-component="sticky’ within the sidebar.php file in the root of the theme directory does not disable this behavior. I’ve added comments to this file, and it doesn’t seem to be the file controlling the sidebar that shows up on listing pages.

Does anyone know where the sidebar on a listing’s HTML is located?

Or..
Does anyone know the cleanest way to disable this behavior generally?

I’d like to disable the behavior, but what’s concerning me more is how difficult it is to disable it. I can’t find the files affecting this behavior, and it doesn’t seem to be a setting I can toggle anywhere.

Thanks for your message — our team will reply shortly.

In the meantime, you can also get instant help from our AI Assistant, familiar with all the docs and solutions we’ve shared over the years.

Hi @Eric_HivePress_Username,

HivePress’s AI suggested this snippet:

.hp-template .inner-wrapper-sticky {
  position: static!important; 
  transform: none!important;
}

I haven’t tested this myself, but let us know if this works!

Cheers,
Chris :victory_hand:

1 Like

Hi,

I tested it on my side, and it works!

Thanks for sharing the solution.

1 Like

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