Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1270486

    I am used to the default height of the top nav bar starting at 88px then reducing to 44px as the user scrolls down the page — but I just started to build out a new site and the top nav height is fixed at 44px.

    I can see the reason — the height is hard-coded…
    <div class=”container av-logo-container” style=”height: 44px; line-height: 44px;”>

    In the sites where the top nav height starts at 88px and reduces to 44px, this line begins as…
    <div class=”container av-logo-container” style=”height: 88px; line-height: 88px;”>
    …and then changes to the 44px value as the user scrolls down the page.

    How can I get the 88px > 44px behavior to work at my new site…??

    – Dick

    UPDATE

    The problem is caused by upgrading to WordPress v5.6 — by downgrading to v5.5.3 the problem goes away.
    I am running Enfold 4.7.6.1

    • This topic was modified 3 years, 11 months ago by solidvapor.
    #1270508

    Hi Dick,

    The inline style (hard-coded) is produced by javascript.
    Go to Enfold > Header > Header Layout > Header Size, set this to slim (or try other values)
    Then in Enfold > Header > Header Behavior, enable Shrinking Header
    Hope this helps.

    Best regards,
    Nikko

    #1270706

    Nikko:

    Setting the header size to “slim” and enabling “shrinking header” did not fix the problem.

    I fixed the problem by downgrading WordPress from v5.6 to v5.5.3 (I was running Enfold 4.7.6.1 under both versions of WordPress).

    Is there a fix I can apply to Enfold 4.7.6.1 to prevent the problem from occurring when WordPress automatically updates my other v4.7.6.1 sites to WP v5.6…??

    Could the problem be caused because I had to add…
    wp_enqueue_script(‘jquery1’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&#8217;, array(), ‘2’, false);
    …to my child theme functions.php file…??

    – Dick

    #1270732

    Hi Dick,

    That could possibly be the reason or one of the reasons, can you try to remove that code?
    If that does not work, please try to install and activate Enable jQuery Migrate Helper plugin, then set the jQuery version to 1.12.4 in the plugin options.

    Best regards,
    Nikko

    #1270949

    Nikko:

    I thought I would start with a fresh install of WordPress v5.6 and of Enfold v4.7.6.1 without a child theme (and, therefore, no functions.php file).

    The problem continued.

    But installing the Enable jQuery Migrate Helper plugin and setting it to 1.12.4 fixed the problem.

    thanks…!!

    – Dick

    #1270972

    Hi Dick,

    We’re glad to hear that :)
    The next release of Enfold should be around the second half/end of January.
    It would include a new feature, WordPress 5.6 fixes, PHP 8.0 fixes, and fixes to some of the issues that have been reported.

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.