Version Description
- 2020-06-19
- security fix - thanks to Antony from Sucuri
Download this release
Release Info
Developer | WebFactory |
Plugin | Sticky Menu (or Anything!) on Scroll |
Version | 2.21 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.21
- readme.txt +13 -9
- sticky-menu-or-anything.php +5 -2
readme.txt
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
-
=== Sticky Menu (or
|
2 |
Contributors: webfactory, wpreset, underconstructionpage, googlemapswidget
|
3 |
-
Tags: sticky header, sticky menu, sticky, header, menu
|
4 |
Plugin URI: https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Sticky Menu
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
The Sticky Menu (
|
16 |
|
17 |
A little bit of basic HTML/CSS knowledge is required. You just need to know how to pick the right selector for the element you want to make sticky, and you need to be sure it's a unique selector. Sometimes a simple selector like "nav", "#main-menu", ".menu-main-menu-1" is enough. Other times you will have to be more detailed and use a more specific selector such as "header > ul:first-child" or "nav.top .menu-header ul.main".
|
18 |
|
19 |
= Features =
|
20 |
|
21 |
-
* **Any element can stick**: although common use is for navigation menus, the plugin will let you pick any unique element with a name, class or ID to stick at the top of the page once you scroll past it. Use it for
|
22 |
* **Positioning from top**: optionally, you can add any amount of space between the sticky element and the top of the page, so that the element is not always stuck at the "ceiling" of the page.
|
23 |
* **Enable for certain screen sizes only**: optionally, you can set a minimum and/or maximum screen size where the stickiness should work. This can be handy if you have a responsive site and you don't want your element to be sticky on smaller screens, for example.
|
24 |
* **Push-up element**: optionally, you can pick any other element lower on the page that will push the sticky element up again (for example a sidebar widget).
|
@@ -115,8 +115,8 @@ Why don't we use Dynamic Mode all the time then? This has to do with the fact th
|
|
115 |
|
116 |
Phew!
|
117 |
|
118 |
-
= I
|
119 |
-
Please go to the plugin's [support forum on WordPress.org](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll) and post a message (include a link to your site if possible).
|
120 |
|
121 |
|
122 |
== Screenshots ==
|
@@ -127,6 +127,10 @@ Please go to the plugin's [support forum on WordPress.org](https://wordpress.org
|
|
127 |
|
128 |
== Changelog ==
|
129 |
|
|
|
|
|
|
|
|
|
130 |
= 2.2 =
|
131 |
* 2020-02-01
|
132 |
* bug fixes
|
1 |
+
=== Sticky Menu, Sticky Header (or anything!) on Scroll ===
|
2 |
Contributors: webfactory, wpreset, underconstructionpage, googlemapswidget
|
3 |
+
Tags: sticky header, sticky menu, sticky, header, sticky widget, floating menu, menu
|
4 |
Plugin URI: https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 2.21
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Sticky Menu or Sticky Header lets you stick any element at the top of the screen when you scroll, or create a floating menu.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
The Sticky Menu (or Sticky Header) On Scroll plugin allows you to **make any element on your pages "sticky"** as soon as it hits the top of the page when you scroll down. Although this is commonly used to keep menus at the top of your page to create floating menus, the plugin allows you to make any element sticky. Make a sticky header, stick menu, sticky widget, sticky logo, sticky call to action or a floating menu.
|
16 |
|
17 |
A little bit of basic HTML/CSS knowledge is required. You just need to know how to pick the right selector for the element you want to make sticky, and you need to be sure it's a unique selector. Sometimes a simple selector like "nav", "#main-menu", ".menu-main-menu-1" is enough. Other times you will have to be more detailed and use a more specific selector such as "header > ul:first-child" or "nav.top .menu-header ul.main".
|
18 |
|
19 |
= Features =
|
20 |
|
21 |
+
* **Any element can stick**: although common use is for navigation menus, or header the plugin will let you pick any unique element with a name, class or ID to stick at the top of the page once you scroll past it. Use it for sticky widget, sticky sidebar, sticky header, sticky menu, sticky header, sticky call-to-action box, sticky banner ad, etc.
|
22 |
* **Positioning from top**: optionally, you can add any amount of space between the sticky element and the top of the page, so that the element is not always stuck at the "ceiling" of the page.
|
23 |
* **Enable for certain screen sizes only**: optionally, you can set a minimum and/or maximum screen size where the stickiness should work. This can be handy if you have a responsive site and you don't want your element to be sticky on smaller screens, for example.
|
24 |
* **Push-up element**: optionally, you can pick any other element lower on the page that will push the sticky element up again (for example a sidebar widget).
|
115 |
|
116 |
Phew!
|
117 |
|
118 |
+
= I need more help please! =
|
119 |
+
Please go to the plugin's [support forum on WordPress.org](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll) and post a message (include a link to your site if possible).
|
120 |
|
121 |
|
122 |
== Screenshots ==
|
127 |
|
128 |
== Changelog ==
|
129 |
|
130 |
+
= 2.21 =
|
131 |
+
* 2020-06-19
|
132 |
+
* security fix - thanks to Antony from Sucuri
|
133 |
+
|
134 |
= 2.2 =
|
135 |
* 2020-02-01
|
136 |
* bug fixes
|
sticky-menu-or-anything.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/
|
|
5 |
Description: Pick any element on the page, and it will stick when it reaches the top of the page when you scroll down. Handy for navigation menus, but can be used for any element on the page.
|
6 |
Author: WebFactory Ltd
|
7 |
Author URI: https://www.webfactoryltd.com/
|
8 |
-
Version: 2.
|
9 |
*/
|
10 |
|
11 |
defined('ABSPATH') or die('INSERT COIN');
|
@@ -189,6 +189,9 @@ if (!function_exists('sticky_anything_config_page')) {
|
|
189 |
} else {
|
190 |
$activeTab = 'main';
|
191 |
}
|
|
|
|
|
|
|
192 |
?>
|
193 |
|
194 |
<h2 class="nav-tab-wrapper">
|
@@ -613,7 +616,6 @@ if (!function_exists('sticky_anything_styles')) {
|
|
613 |
remove_filter('plugins_api_result', 'sticky_plugins_api_result', 10, 3);
|
614 |
|
615 |
$res = sticky_add_plugin_featured('wp-external-links', $res);
|
616 |
-
$res = sticky_add_plugin_featured('wp-force-ssl', $res);
|
617 |
$res = sticky_add_plugin_featured('eps-301-redirects', $res);
|
618 |
$res = sticky_add_plugin_featured('simple-author-box', $res);
|
619 |
|
@@ -653,4 +655,5 @@ add_action('admin_init', 'sticky_anything_admin_init' );
|
|
653 |
add_action('admin_enqueue_scripts', 'sticky_anything_styles' );
|
654 |
add_filter("plugin_action_links_$plugin", 'sticky_anything_settings_link' );
|
655 |
add_filter('install_plugins_table_api_args_featured', 'sticky_featured_plugins_tab');
|
|
|
656 |
add_action('admin_action_sticky_hide_review_notification', 'sticky_hide_review_notification');
|
5 |
Description: Pick any element on the page, and it will stick when it reaches the top of the page when you scroll down. Handy for navigation menus, but can be used for any element on the page.
|
6 |
Author: WebFactory Ltd
|
7 |
Author URI: https://www.webfactoryltd.com/
|
8 |
+
Version: 2.21
|
9 |
*/
|
10 |
|
11 |
defined('ABSPATH') or die('INSERT COIN');
|
189 |
} else {
|
190 |
$activeTab = 'main';
|
191 |
}
|
192 |
+
if ($activeTab != 'main' && $activeTab != 'advanced' && $activeTab != 'faq') {
|
193 |
+
$activeTab = 'main';
|
194 |
+
}
|
195 |
?>
|
196 |
|
197 |
<h2 class="nav-tab-wrapper">
|
616 |
remove_filter('plugins_api_result', 'sticky_plugins_api_result', 10, 3);
|
617 |
|
618 |
$res = sticky_add_plugin_featured('wp-external-links', $res);
|
|
|
619 |
$res = sticky_add_plugin_featured('eps-301-redirects', $res);
|
620 |
$res = sticky_add_plugin_featured('simple-author-box', $res);
|
621 |
|
655 |
add_action('admin_enqueue_scripts', 'sticky_anything_styles' );
|
656 |
add_filter("plugin_action_links_$plugin", 'sticky_anything_settings_link' );
|
657 |
add_filter('install_plugins_table_api_args_featured', 'sticky_featured_plugins_tab');
|
658 |
+
add_filter('install_plugins_table_api_args_recommended', 'sticky_featured_plugins_tab');
|
659 |
add_action('admin_action_sticky_hide_review_notification', 'sticky_hide_review_notification');
|