विवरण
WP Stickit is a powerful WordPress plugin that makes any element on your website sticky with advanced customization options. Perfect for creating sticky headers, sidebars, navigation menus, or any other element you want to keep visible while users scroll.
Key Features:
* Multiple Selectors: Use CSS selectors (classes, IDs) or separate multiple selectors with commas
* Custom Positioning: Set custom top offset for precise sticky positioning
* Z-Index Control: Manage layering with customizable z-index values
* Responsive Design: Set minimum and maximum screen widths for responsive behavior
* Lightweight: Uses the efficient jQuery Stickit library
* Easy Setup: Simple admin interface with clear instructions
इंस्टॉलेशन
Automatic Installation (Recommended):
- Log in to your WordPress admin dashboard
- Navigate to Plugins Add New
- Search for “WP Stickit”
- Click “Install Now” and then “Activate”
Manual Installation:
- Download the latest version of WP Stickit from the WordPress.org repository
- Extract the zip file to get the
wp-stickitfolder - Upload the
wp-stickitfolder to your/wp-content/plugins/directory using FTP or your hosting control panel - Activate the plugin through the ‘Plugins’ menu in WordPress admin
Configuration:
- Go to Settings WP Stickit in your WordPress admin dashboard
- Configure your sticky element settings:
- Class Name: Enter CSS selector(s) (e.g.,
.sidebar,#header,.sidebar, .widget) - Top: Set top offset in pixels (e.g., 50 for 50px from top)
- Z-Index: Set layering value (default: 100)
- Screen Min Width: Minimum screen width for sticky behavior (default: 1280px)
- Screen Max Width: Maximum screen width for sticky behavior (default: 1920px)
- Class Name: Enter CSS selector(s) (e.g.,
- Click “Save Changes”
Requirements:
* WordPress 5.0 or higher
* Modern web browser with JavaScript enabled
If you encounter any bugs or have comments or suggestions, please submit a ticket using the support forum.
सामान्य प्रश्न
-
Can I use multiple CSS selectors?
-
Yes! You can use multiple selectors by separating them with commas. For example:
*.sidebar, .widget– targets both sidebar and widget elements
*#header, .navigation– targets both header ID and navigation class
*.sticky-element, #my-widget, .custom-sidebar– targets multiple different elements -
My element isn’t becoming sticky. What should I check?
-
-
Verify CSS Selector: Make sure you’re using the correct CSS selector with proper syntax:
- Use
.for classes (e.g.,.sidebar) - Use
#for IDs (e.g.,#header) - Check your browser’s developer tools to confirm the element exists
- Use
-
Check Screen Width: Ensure your screen width is within the configured min/max width range
-
Z-Index Conflicts: Try increasing the z-index value if your sticky element appears behind other elements
-
JavaScript Errors: Check your browser console for any JavaScript errors that might prevent the plugin from working
-
Theme Compatibility: Some themes may have CSS that interferes with sticky positioning
-
-
What’s the difference between Screen Min Width and Screen Max Width?
-
These settings control when the sticky effect is active based on screen size:
* Screen Min Width: Sticky effect only works on screens wider than this value (default: 1280px)
* Screen Max Width: Sticky effect only works on screens narrower than this value (default: 1920px)This is useful for responsive design – you might want sticky elements only on desktop but not on mobile devices.
-
Can I use this plugin with page builders?
-
Yes! WP Stickit works with most page builders including Elementor, Gutenberg, Beaver Builder, and others. Just use the CSS class or ID that the page builder assigns to your element.
-
Will this plugin slow down my website?
-
No, WP Stickit is lightweight and optimized:
* Uses the efficient jQuery Stickit library
* Only loads on pages where it’s needed
* Minimal JavaScript footprint
* No external API calls or heavy processing -
How do I remove the sticky effect from an element?
-
Simply remove the CSS selector from the “Class Name” field in the plugin settings, or deactivate the plugin entirely.
-
Can I have different sticky settings for different elements?
-
Currently, the plugin applies the same settings to all specified selectors. For different settings per element, you would need to configure them separately or use multiple instances of the plugin.
-
Is this plugin compatible with caching plugins?
-
Yes, WP Stickit is compatible with most caching plugins including WP Rocket, W3 Total Cache, and WP Super Cache. The plugin’s JavaScript will work regardless of cached HTML.
समीक्षाएं
सहायक &डेवलपर्स
यह खुला स्रोत सॉफ्टवेयर है। अनुगामी लोगो ने इस प्लगइन के लिए योगदान दिया है।
योगदानकर्ता“WP Stickit – Sticky Header, Menu, Sidebar & More” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “WP Stickit – Sticky Header, Menu, Sidebar & More” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
बदलाव विवरण
1.4.0
- Major Code Refactoring: Complete rewrite following WordPress coding standards
- Enhanced Security: Added input sanitization and validation for all form fields
- Improved Internationalization: Full translation support with proper text domain
- Better User Experience: Updated admin interface with clearer descriptions and help text
- Code Quality: Added WordPress security checks, proper escaping, and documentation
- Multiple Selectors: Enhanced support for comma-separated CSS selectors
- Modern Architecture: Separated frontend and admin functionality into organized files
- WordPress Compatibility: Updated for WordPress 6.8+ compatibility
1.3.1
- Updated compatibility.
1.3.0
- Updated to jQuery Stickit v0.2.14.
- Fixed top offset problem
1.2.0
- Updated to jQuery Stickit v0.2.11.
- Added some additional options.
- Top
- zIndex
1.1.0
- Updated to jQuery Stickit v0.2.1.
- Fixed incorrect sticky position in some cases.
1.0.0
- Initial release.
