-
AuthorPosts
-
January 6, 2021 at 12:30 am #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, 10 months ago by solidvapor.
January 6, 2021 at 4:53 am #1270508Hi 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,
NikkoJanuary 6, 2021 at 7:49 pm #1270706Nikko:
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’, array(), ‘2’, false);
…to my child theme functions.php file…??– Dick
January 7, 2021 at 2:10 am #1270732Hi 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,
NikkoJanuary 7, 2021 at 8:43 pm #1270949Nikko:
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
January 8, 2021 at 1:20 am #1270972Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.