I tried to make a sticky sidebar. But I failed.

[ad_1]

I tried to make the sticky sidebar using[ this plugin]). And I also tried this CSS code:-

`.fixed-sidebar {`

`position: -webkit-sticky;`

`position: -moz-sticky;`

`position: -ms-sticky;`

`position: -o-sticky;`

`position: sticky;`

`height: 300px;`

`padding: 30px 0;`

`background: #555;`

`color: #fff;`

`top: 10px;`

`bottom: auto;`

`}`

But both ways did not work for me. Right now I am using the Hestia theme. I want to display the amazon ads in the sidebar. Would you guys be able to help me with this? Thank you…

[ad_2]
2 Comments
  1. A sticky sidebar relies on having a longer content area next to it, so it sticks to the top until the end of the parent element is reached, then it starts scrolling up like normal.

    [Illustration example])

  2. Without your website and code. It’d be like finding a piece of straw in a infinite room full of needles.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer