Changeset 1946377
- Timestamp:
- 09/24/2018 08:33:53 PM (8 years ago)
- Location:
- sticky-header-oceanwp/trunk
- Files:
-
- 2 edited
-
main.js (modified) (2 diffs)
-
sticky-header-oceanwp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sticky-header-oceanwp/trunk/main.js
r1946372 r1946377 12 12 13 13 var site_header = $('#site-header'); 14 var wpadmin_height = $('#wpadminbar').height() > 0 ? $('#wpadminbar').height() : 0; 15 var top_bars = $('#top-bar-wrap').height(); 14 var wpadmin_height = $('#wpadminbar').css('position') == 'fixed' && $('#wpadminbar').height() > 0 ? $('#wpadminbar').height() : 0; 15 var top_bars = $('#wpadminbar').css('position') == 'fixed' ? $('#top-bar-wrap').height() : $('#top-bar-wrap').height() + $('#wpadminbar').height(); 16 console.log(top_bars); 16 17 var header_status = $(window).scrollTop() >= top_bars; 17 18 var header_padding = site_header.height(); … … 38 39 39 40 if (style == 'shrink'){ 40 var fixed_height = 74;41 41 42 42 if (!header_status){ -
sticky-header-oceanwp/trunk/sticky-header-oceanwp.php
r1946372 r1946377 3 3 * Plugin Name: Sticky Header OceanWP 4 4 * Description: Want a new fresh sticky header like everyone else, with our plugin you can get the best and better sticky header that you ever seen 5 * Version: 1.0. 45 * Version: 1.0.5 6 6 * Author: Oren Hahiashvili 7 7 * Author URI: https://www.script.co.il
Note: See TracChangeset
for help on using the changeset viewer.