myStickymenu - Version 2.2.1

Version Description

Sticky menu and welcome bar conflict fix

Download this release

Release Info

Developer galdub
Plugin Icon 128x128 myStickymenu
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

Files changed (3) hide show
  1. mystickymenu.php +2 -2
  2. readme.txt +14 -6
  3. welcome-bar.php +13 -1
mystickymenu.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: myStickymenu
4
  Plugin URI: https://premio.io/
5
  Description: Simple sticky (fixed on top) menu implementation for navigation menu and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
- Version: 2.2
7
  Author: Premio
8
  Author URI: https://premio.io/downloads/mystickymenu/
9
  Text Domain: mystickymenu
@@ -12,7 +12,7 @@ License: GPLv2 or later
12
  */
13
 
14
  defined('ABSPATH') or die("Cannot access pages directly.");
15
- define( 'MYSTICKY_VERSION', '2.2' );
16
  require_once("mystickymenu-fonts.php");
17
  require_once("welcome-bar.php");
18
 
3
  Plugin Name: myStickymenu
4
  Plugin URI: https://premio.io/
5
  Description: Simple sticky (fixed on top) menu implementation for navigation menu and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
+ Version: 2.2.1
7
  Author: Premio
8
  Author URI: https://premio.io/downloads/mystickymenu/
9
  Text Domain: mystickymenu
12
  */
13
 
14
  defined('ABSPATH') or die("Cannot access pages directly.");
15
+ define( 'MYSTICKY_VERSION', '2.2.1' );
16
  require_once("mystickymenu-fonts.php");
17
  require_once("welcome-bar.php");
18
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  ===Sticky Menu on Scroll, Sticky Header, Sticky Welcome Bar for Any Theme - myStickymenu===
2
  Contributors: tomeraharon, galdub, premio
3
- Tags:menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar, floating bar
4
  Requires at least: 3.5.1
5
  Tested up to: 5.2
6
- Stable tag: 2.2
7
  License: GPLv2 or later
8
 
9
  This sticky menu plugin will make your menu or header stick to the top of page, when scrolled down and up. Also create a beautiful Welcome bar with it.
@@ -20,10 +20,10 @@ With more than 60,000+ active installs and around 100 five-stars reviews, you ca
20
  = BENEFITS =
21
  * Improve user experience by letting your visitors access the navigation menu and navigate to the pages they want when they want to.
22
  * Make your website look more modern with sticky menu on desktop and mobile.
23
- * Increase number of pageviews and
24
  * Create your own floating Welcome Bar and let your visitors know about your latest deals, announcements or any other important information
25
 
26
- The sticky header function is localized (multi language support) and responsive (as far as your theme is). Also there is possibility to add custom css code which make this plugin very flexible, customizable and user friendly.
27
 
28
  My Sticky Menu plugin is originally designed for Twenty Thirteen template but should work on any theme, like: OceanWP, Nirvana Template, Travelify, Twenty Sixteen, Twenty Ten, Twenty Eleven, Max Magazine, Graduate, Lawyer theme, Spacious, Suits and more.
29
 
@@ -54,7 +54,9 @@ My Sticky Menu is tested and compatible with Elementor website builder, Divi, WP
54
  * Add CSS style to the floating header
55
  * Disable floating header on specific pages
56
 
57
- <strong>Welcome Bar Pro Features</strong>
 
 
58
  * Remove the Get Bar credit
59
  * Display your floating bar at bottom position
60
  * Change the height of the sticky bar
@@ -67,7 +69,11 @@ My Sticky Menu is tested and compatible with Elementor website builder, Divi, WP
67
  <a href="https://premio.io/downloads/mystickymenu/" target="_blank" title="mystickymenu pro plans"><strong>>>> See Pro plans here</strong></a>
68
 
69
  = Live Demo =
70
- A live demo for myStickymenu plugin is available at <a href="https://demo.premio.io/mystickymenu/?utm_source=wordpressorg" target="_blank" title="Premio.io demo site">Premio's demo site</a>.
 
 
 
 
71
 
72
  = Testimonials =
73
 
@@ -251,6 +257,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
251
 
252
 
253
  == Changelog ==
 
 
254
  = 2.2 =
255
  You can now add a welcome bar to your website
256
  = 2.1.8 =
1
  ===Sticky Menu on Scroll, Sticky Header, Sticky Welcome Bar for Any Theme - myStickymenu===
2
  Contributors: tomeraharon, galdub, premio
3
+ Tags:menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar, floating bar, notification bar
4
  Requires at least: 3.5.1
5
  Tested up to: 5.2
6
+ Stable tag: 2.2.1
7
  License: GPLv2 or later
8
 
9
  This sticky menu plugin will make your menu or header stick to the top of page, when scrolled down and up. Also create a beautiful Welcome bar with it.
20
  = BENEFITS =
21
  * Improve user experience by letting your visitors access the navigation menu and navigate to the pages they want when they want to.
22
  * Make your website look more modern with sticky menu on desktop and mobile.
23
+ * Increase number of pageviews and visitors' time on website
24
  * Create your own floating Welcome Bar and let your visitors know about your latest deals, announcements or any other important information
25
 
26
+ The sticky header function is localized (multi language support) and responsive (as far as your theme is). Also there is possibility to add custom css code which make this plugin very flexible, customizable and user friendly. You can also use the notification bar in any languauge.
27
 
28
  My Sticky Menu plugin is originally designed for Twenty Thirteen template but should work on any theme, like: OceanWP, Nirvana Template, Travelify, Twenty Sixteen, Twenty Ten, Twenty Eleven, Max Magazine, Graduate, Lawyer theme, Spacious, Suits and more.
29
 
54
  * Add CSS style to the floating header
55
  * Disable floating header on specific pages
56
 
57
+ But wait, there's more 😉
58
+
59
+ = Welcome Bar Pro Features =
60
  * Remove the Get Bar credit
61
  * Display your floating bar at bottom position
62
  * Change the height of the sticky bar
69
  <a href="https://premio.io/downloads/mystickymenu/" target="_blank" title="mystickymenu pro plans"><strong>>>> See Pro plans here</strong></a>
70
 
71
  = Live Demo =
72
+ A live demo for myStickymenu plugin and notification bar is available at <a href="https://demo.premio.io/mystickymenu/?utm_source=wordpressorg" target="_blank" title="Premio.io demo site">Premio's demo site</a>.
73
+
74
+ = myStickymenu IS GDPR COMPLAINT =
75
+ We don’t store any local data about your visitors. Any time your menu or notification bar appears on your site, the plugin will not store any local data about it.
76
+ <strong>Pro tip:</strong> You can the plugin's notification bar to let your website visitors know about your cookie policy :)
77
 
78
  = Testimonials =
79
 
257
 
258
 
259
  == Changelog ==
260
+ = 2.2.1 =
261
+ Sticky menu and welcome bar conflict fix
262
  = 2.2 =
263
  You can now add a welcome bar to your website
264
  = 2.1.8 =
welcome-bar.php CHANGED
@@ -542,13 +542,14 @@ function mysticky_welcome_bar_frontend(){
542
  var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
543
  var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
544
  setTimeout(function(){
545
- jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
546
  if ( welcombar_position == 'top' ) {
547
  jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
548
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
549
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
550
  $( 'html' ).css( 'margin-bottom', '' );
551
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
 
552
  } else {
553
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
554
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
@@ -572,6 +573,7 @@ function mysticky_welcome_bar_frontend(){
572
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
573
  $( 'html' ).css( 'margin-bottom', '' );
574
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
 
575
  } else {
576
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
577
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
@@ -599,6 +601,7 @@ function mysticky_welcome_bar_frontend(){
599
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
600
  $( 'html' ).css( 'margin-bottom', '' );
601
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
 
602
  } else {
603
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
604
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
@@ -616,6 +619,7 @@ function mysticky_welcome_bar_frontend(){
616
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
617
  $( 'html' ).css( 'margin-bottom', '' );
618
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
 
619
  } else {
620
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
621
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
@@ -631,6 +635,11 @@ function mysticky_welcome_bar_frontend(){
631
 
632
  jQuery(window).scroll(function(){
633
  if ( sessionStorage.getItem("welcomebar_close") === null ){
 
 
 
 
 
634
  if ( after_trigger === 'after_scroll' ) {
635
  var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
636
  var after_scroll_val = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec');
@@ -645,6 +654,7 @@ function mysticky_welcome_bar_frontend(){
645
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
646
  $( 'html' ).css( 'margin-bottom', '' );
647
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
 
648
  } else {
649
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
650
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
@@ -661,6 +671,7 @@ function mysticky_welcome_bar_frontend(){
661
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
662
  $( 'html' ).css( 'margin-bottom', '' );
663
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
 
664
  } else {
665
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
666
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
@@ -686,6 +697,7 @@ function mysticky_welcome_bar_frontend(){
686
  }
687
  jQuery( 'html' ).css( 'margin-top', '' );
688
  jQuery( 'html' ).css( 'margin-bottom', '' );
 
689
  } );
690
  });
691
  </script>
542
  var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
543
  var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
544
  setTimeout(function(){
545
+ jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
546
  if ( welcombar_position == 'top' ) {
547
  jQuery( '.mysticky-welcomebar-fixed' ).addClass( 'mysticky-welcomebar-animation' );
548
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'top', '0' );
549
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
550
  $( 'html' ).css( 'margin-bottom', '' );
551
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
552
+ $( '#mysticky-nav' ).css( 'top', '60px' );
553
  } else {
554
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
555
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
573
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
574
  $( 'html' ).css( 'margin-bottom', '' );
575
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
576
+ $( '#mysticky-nav' ).css( 'top', '60px' );
577
  } else {
578
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
579
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
601
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
602
  $( 'html' ).css( 'margin-bottom', '' );
603
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
604
+ $( '#mysticky-nav' ).css( 'top', '60px' );
605
  } else {
606
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
607
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
619
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
620
  $( 'html' ).css( 'margin-bottom', '' );
621
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
622
+ $( '#mysticky-nav' ).css( 'top', '60px' );
623
  } else {
624
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
625
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
635
 
636
  jQuery(window).scroll(function(){
637
  if ( sessionStorage.getItem("welcomebar_close") === null ){
638
+ var welcombar_height = $( '.mysticky-welcomebar-fixed' ).data('height');
639
+ var welcombar_position = $( '.mysticky-welcomebar-fixed' ).data('position');
640
+ if ( welcombar_position == 'top' ) {
641
+ $( '#mysticky-nav' ).css( 'top', welcombar_height + 'px' );
642
+ }
643
  if ( after_trigger === 'after_scroll' ) {
644
  var scroll = 100 * $(window).scrollTop() / ($(document).height() - $(window).height());
645
  var after_scroll_val = jQuery( '.mysticky-welcomebar-fixed' ).data('triger-sec');
654
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
655
  $( 'html' ).css( 'margin-bottom', '' );
656
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
657
+ $( '#mysticky-nav' ).css( 'top', '60px' );
658
  } else {
659
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
660
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
671
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
672
  $( 'html' ).css( 'margin-bottom', '' );
673
  $( 'html' ).attr( 'style', 'margin-top: 60px !important' );
674
+ $( '#mysticky-nav' ).css( 'top', '60px' );
675
  } else {
676
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'bottom', '0' );
677
  jQuery( '.mysticky-welcomebar-fixed' ).css( 'opacity', '1' );
697
  }
698
  jQuery( 'html' ).css( 'margin-top', '' );
699
  jQuery( 'html' ).css( 'margin-bottom', '' );
700
+ $( '#mysticky-nav' ).css( 'top', '0px' );
701
  } );
702
  });
703
  </script>