• 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)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi @narubi,

    thanks for leaving a comment about Fixed Widget.

    You are right that developers can fix elements using custom code. Fixed Widget comes with a few more options, like starting and stopping the position of fixed elements that are not included in your code. The plugin also enables non-developers to implement these features.

    If you found a bug then we are happy to take a look at it. Since you seem to be an experienced coder you can even make suggestions on fixes.

    All the best to you and your project!
    Thomas

    Thread Starter narubi

    (@narubi)

    The bugs are mostly what all others are experiencing: Jumping and overlapping of widgets. Conflicting with original styling of the website.
    It may also be caused by a caching plugin/minify of css. I am not sure and I am definitely not an experienced coder ??
    All I needed was a sticky sidebar so this plugin is overkill for me anyway.

    Jumping overlapping is most probably due to the widget being set to position: relative; changed this to position: static; and you won’t have any issues. The dev does have a how-to in case you have issues – https://wpadvancedads.com/fixed-widget-wordpress/?utm_source=fixed-widget&utm_medium=link&utm_campaign=BackendSidebar#jumping. Think 3 stars is a bit harsh for something that is lightweight and works a treat.

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.