It is much better to use your own code
-
While I appreciate that there is a Fixed Widget plugin for WordPress, it is way too buggy. It is much simpler to just use a couple of lines of code in your style.css file.
@media only screen and (min-width: 1200px) { .content-sidebar-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } .sidebar-primary, .sidebar-secondary { position: -webkit-sticky; position: sticky; height: 100%; top: 86px; margin-bottom: 0px; } .admin-bar .sidebar-primary, .admin-bar .sidebar-secondary { top: 118px; } }
Just edit your divs and margins and you have a fixed widget.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘It is much better to use your own code’ is closed to new replies.