Plugin Directory

Changeset 1946377


Ignore:
Timestamp:
09/24/2018 08:33:53 PM (8 years ago)
Author:
scriptcoil
Message:

# Fixed issue: Space above header in mobile version when logged in. #

Location:
sticky-header-oceanwp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sticky-header-oceanwp/trunk/main.js

    r1946372 r1946377  
    1212
    1313            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);
    1617            var header_status = $(window).scrollTop() >= top_bars;
    1718            var header_padding = site_header.height();
     
    3839       
    3940        if (style == 'shrink'){
    40             var fixed_height = 74;
    4141           
    4242            if (!header_status){
  • sticky-header-oceanwp/trunk/sticky-header-oceanwp.php

    r1946372 r1946377  
    33 * Plugin Name:         Sticky Header OceanWP
    44 * 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.4
     5 * Version:             1.0.5
    66 * Author:              Oren Hahiashvili
    77 * Author URI:          https://www.script.co.il
Note: See TracChangeset for help on using the changeset viewer.