Bootrap 4 collapse not collapsing/disappearing on page scroll on IOS SafariHow to add a PHP page to WordPress?Fixed Position Nav CSS3 Transitions / Hover Effects Not Working + Other Strange Bugshow to add this jquery script in to wordpress websiteDiv overlays sibling element and has extra height for no apparent reasonFixes for Bootrap 4 CroppingBootstrap 4 Navbar Collapse in WordpressMigrating from Bootstrap 3.7 to 4.1 NavBar behaviorAngular and Bootrap 4: The grid is destroyed with ngForbootstrap vertical scroll bar disappear when opening developer toolsAUTO SCROLL WEB PAGE

Why was the small council so happy for Tyrion to become the Master of Coin?

TGV timetables / schedules?

In Japanese, what’s the difference between “Tonari ni” (となりに) and “Tsugi” (つぎ)? When would you use one over the other?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Have astronauts in space suits ever taken selfies? If so, how?

Arthur Somervell: 1000 Exercises - Meaning of this notation

What's the output of a record cartridge playing an out-of-speed record

What defenses are there against being summoned by the Gate spell?

Mathematical cryptic clues

Theorem, big Paralist and Amsart

Minkowski space

Do VLANs within a subnet need to have their own subnet for router on a stick?

the place where lots of roads meet

What are these boxed doors outside store fronts in New York?

How to find program name(s) of an installed package?

What are the differences between the usage of 'it' and 'they'?

LaTeX closing $ signs makes cursor jump

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

What typically incentivizes a professor to change jobs to a lower ranking university?

What would happen to a modern skyscraper if it rains micro blackholes?

Why are electrically insulating heatsinks so rare? Is it just cost?

Modeling an IPv4 Address



Bootrap 4 collapse not collapsing/disappearing on page scroll on IOS Safari


How to add a PHP page to WordPress?Fixed Position Nav CSS3 Transitions / Hover Effects Not Working + Other Strange Bugshow to add this jquery script in to wordpress websiteDiv overlays sibling element and has extra height for no apparent reasonFixes for Bootrap 4 CroppingBootstrap 4 Navbar Collapse in WordpressMigrating from Bootstrap 3.7 to 4.1 NavBar behaviorAngular and Bootrap 4: The grid is destroyed with ngForbootstrap vertical scroll bar disappear when opening developer toolsAUTO SCROLL WEB PAGE






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















The navbar-collapse collapses/disappears when clicking a menu link to an actual "page" but it doesn't collapse/disappear when clicking a "custom" menu link to scroll to a different section on the same page.



I have the navbar-collapse appearing as a full screen when toggling the Hamburger Icon. The JQuery fixes this but it still doesn't work on IOS Safari.



HERE IS MY CSS



 * cursor: pointer; 

#site-header
height: 85px;
top: 0;
z-index: 3000;



.logged-in #site-header
top: 32px;


#primary
margin-top: 85px;


.nav
display: block;



.navbar
height: 75px;
width: 100%;
padding: 0;
background: black;



.navbar-nav
float: none!important;



.navbar-collapse
position: absolute;
background: black;
width: 100%;
padding-right: 30px;
padding-top: 0px;
padding-bottom: 35px;
border: 0px;
margin-top: 0px;
height: 110vh;
left: 0;
top:0;
background-size: cover;


.navbar-image
position: absolute;
opacity: .2;
right: 0px;
top:0%;
margin-top: -15px;
padding-left: 30px;
padding-right: 30px;
bottom: 0;
margin: auto;
z-index: 1;




.navbar-image:hover, .navbar-image:active

-webkit-transition-duration: 5.8s;
-moz-transition-duration: 5.8s;
-o-transition-duration: 5.8s;
transition-duration: 5.8s;

-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
transition-property: transform;

overflow:hidden;
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-o-transform:rotate(360deg);




.collapsing
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height .01s;
-moz-transition: height .01s;
-ms-transition: height .01s;
-o-transition: height .01s;
transition: height .01s;


.navbar-collapse ul
position: absolute;
margin-left: 50px;
margin-top: 80px;
z-index: 2;


.navbar-collapse ul li
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 1px;

.navbar-collapse ul li a
color: white!important;
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 300;



HERE IS THE HTML



 <header id="site-header" class="container-fluid">
<nav class="navbar fixed-top" role="navigation">

<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggler disable" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="icon-bar top-menu"></span>
<span class="icon-bar mid-menu"></span>
<span class="icon-bar bottom-menu"></span>
</button>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">

<ul class="nav">
<li class="menu-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="menu-item">
<a class="nav-link" href="#">Somthing Else</a>
</li>
</ul>

</div>
</div>
</nav>




JQUERY



 (function ($) 
$(document).ready(function ()
$(".navbar-collapse ul li a").on("click", function ()
$(".navbar-collapse").collapse("hide");
);
);
)(jQuery);









share|improve this question



















  • 1





    Can you show us the HTML code that the css applies to, rather than the PHP?

    – FluffyKitten
    Mar 7 at 5:46






  • 1





    Thanks FluffyKitten, I have Edited the code.

    – Cali
    Mar 9 at 1:35

















0















The navbar-collapse collapses/disappears when clicking a menu link to an actual "page" but it doesn't collapse/disappear when clicking a "custom" menu link to scroll to a different section on the same page.



I have the navbar-collapse appearing as a full screen when toggling the Hamburger Icon. The JQuery fixes this but it still doesn't work on IOS Safari.



HERE IS MY CSS



 * cursor: pointer; 

#site-header
height: 85px;
top: 0;
z-index: 3000;



.logged-in #site-header
top: 32px;


#primary
margin-top: 85px;


.nav
display: block;



.navbar
height: 75px;
width: 100%;
padding: 0;
background: black;



.navbar-nav
float: none!important;



.navbar-collapse
position: absolute;
background: black;
width: 100%;
padding-right: 30px;
padding-top: 0px;
padding-bottom: 35px;
border: 0px;
margin-top: 0px;
height: 110vh;
left: 0;
top:0;
background-size: cover;


.navbar-image
position: absolute;
opacity: .2;
right: 0px;
top:0%;
margin-top: -15px;
padding-left: 30px;
padding-right: 30px;
bottom: 0;
margin: auto;
z-index: 1;




.navbar-image:hover, .navbar-image:active

-webkit-transition-duration: 5.8s;
-moz-transition-duration: 5.8s;
-o-transition-duration: 5.8s;
transition-duration: 5.8s;

-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
transition-property: transform;

overflow:hidden;
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-o-transform:rotate(360deg);




.collapsing
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height .01s;
-moz-transition: height .01s;
-ms-transition: height .01s;
-o-transition: height .01s;
transition: height .01s;


.navbar-collapse ul
position: absolute;
margin-left: 50px;
margin-top: 80px;
z-index: 2;


.navbar-collapse ul li
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 1px;

.navbar-collapse ul li a
color: white!important;
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 300;



HERE IS THE HTML



 <header id="site-header" class="container-fluid">
<nav class="navbar fixed-top" role="navigation">

<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggler disable" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="icon-bar top-menu"></span>
<span class="icon-bar mid-menu"></span>
<span class="icon-bar bottom-menu"></span>
</button>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">

<ul class="nav">
<li class="menu-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="menu-item">
<a class="nav-link" href="#">Somthing Else</a>
</li>
</ul>

</div>
</div>
</nav>




JQUERY



 (function ($) 
$(document).ready(function ()
$(".navbar-collapse ul li a").on("click", function ()
$(".navbar-collapse").collapse("hide");
);
);
)(jQuery);









share|improve this question



















  • 1





    Can you show us the HTML code that the css applies to, rather than the PHP?

    – FluffyKitten
    Mar 7 at 5:46






  • 1





    Thanks FluffyKitten, I have Edited the code.

    – Cali
    Mar 9 at 1:35













0












0








0








The navbar-collapse collapses/disappears when clicking a menu link to an actual "page" but it doesn't collapse/disappear when clicking a "custom" menu link to scroll to a different section on the same page.



I have the navbar-collapse appearing as a full screen when toggling the Hamburger Icon. The JQuery fixes this but it still doesn't work on IOS Safari.



HERE IS MY CSS



 * cursor: pointer; 

#site-header
height: 85px;
top: 0;
z-index: 3000;



.logged-in #site-header
top: 32px;


#primary
margin-top: 85px;


.nav
display: block;



.navbar
height: 75px;
width: 100%;
padding: 0;
background: black;



.navbar-nav
float: none!important;



.navbar-collapse
position: absolute;
background: black;
width: 100%;
padding-right: 30px;
padding-top: 0px;
padding-bottom: 35px;
border: 0px;
margin-top: 0px;
height: 110vh;
left: 0;
top:0;
background-size: cover;


.navbar-image
position: absolute;
opacity: .2;
right: 0px;
top:0%;
margin-top: -15px;
padding-left: 30px;
padding-right: 30px;
bottom: 0;
margin: auto;
z-index: 1;




.navbar-image:hover, .navbar-image:active

-webkit-transition-duration: 5.8s;
-moz-transition-duration: 5.8s;
-o-transition-duration: 5.8s;
transition-duration: 5.8s;

-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
transition-property: transform;

overflow:hidden;
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-o-transform:rotate(360deg);




.collapsing
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height .01s;
-moz-transition: height .01s;
-ms-transition: height .01s;
-o-transition: height .01s;
transition: height .01s;


.navbar-collapse ul
position: absolute;
margin-left: 50px;
margin-top: 80px;
z-index: 2;


.navbar-collapse ul li
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 1px;

.navbar-collapse ul li a
color: white!important;
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 300;



HERE IS THE HTML



 <header id="site-header" class="container-fluid">
<nav class="navbar fixed-top" role="navigation">

<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggler disable" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="icon-bar top-menu"></span>
<span class="icon-bar mid-menu"></span>
<span class="icon-bar bottom-menu"></span>
</button>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">

<ul class="nav">
<li class="menu-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="menu-item">
<a class="nav-link" href="#">Somthing Else</a>
</li>
</ul>

</div>
</div>
</nav>




JQUERY



 (function ($) 
$(document).ready(function ()
$(".navbar-collapse ul li a").on("click", function ()
$(".navbar-collapse").collapse("hide");
);
);
)(jQuery);









share|improve this question
















The navbar-collapse collapses/disappears when clicking a menu link to an actual "page" but it doesn't collapse/disappear when clicking a "custom" menu link to scroll to a different section on the same page.



I have the navbar-collapse appearing as a full screen when toggling the Hamburger Icon. The JQuery fixes this but it still doesn't work on IOS Safari.



HERE IS MY CSS



 * cursor: pointer; 

#site-header
height: 85px;
top: 0;
z-index: 3000;



.logged-in #site-header
top: 32px;


#primary
margin-top: 85px;


.nav
display: block;



.navbar
height: 75px;
width: 100%;
padding: 0;
background: black;



.navbar-nav
float: none!important;



.navbar-collapse
position: absolute;
background: black;
width: 100%;
padding-right: 30px;
padding-top: 0px;
padding-bottom: 35px;
border: 0px;
margin-top: 0px;
height: 110vh;
left: 0;
top:0;
background-size: cover;


.navbar-image
position: absolute;
opacity: .2;
right: 0px;
top:0%;
margin-top: -15px;
padding-left: 30px;
padding-right: 30px;
bottom: 0;
margin: auto;
z-index: 1;




.navbar-image:hover, .navbar-image:active

-webkit-transition-duration: 5.8s;
-moz-transition-duration: 5.8s;
-o-transition-duration: 5.8s;
transition-duration: 5.8s;

-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-o-transition-property: -o-transform;
transition-property: transform;

overflow:hidden;
-webkit-transform:rotate(360deg);
-moz-transform:rotate(360deg);
-o-transform:rotate(360deg);




.collapsing
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height .01s;
-moz-transition: height .01s;
-ms-transition: height .01s;
-o-transition: height .01s;
transition: height .01s;


.navbar-collapse ul
position: absolute;
margin-left: 50px;
margin-top: 80px;
z-index: 2;


.navbar-collapse ul li
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 1px;

.navbar-collapse ul li a
color: white!important;
font-family: 'Montserrat', sans-serif;
font-style: normal;
font-weight: 300;



HERE IS THE HTML



 <header id="site-header" class="container-fluid">
<nav class="navbar fixed-top" role="navigation">

<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggler disable" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="icon-bar top-menu"></span>
<span class="icon-bar mid-menu"></span>
<span class="icon-bar bottom-menu"></span>
</button>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">

<ul class="nav">
<li class="menu-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="menu-item">
<a class="nav-link" href="#">Somthing Else</a>
</li>
</ul>

</div>
</div>
</nav>




JQUERY



 (function ($) 
$(document).ready(function ()
$(".navbar-collapse ul li a").on("click", function ()
$(".navbar-collapse").collapse("hide");
);
);
)(jQuery);






wordpress bootstrap-4






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 3:07







Cali

















asked Mar 7 at 0:44









CaliCali

32




32







  • 1





    Can you show us the HTML code that the css applies to, rather than the PHP?

    – FluffyKitten
    Mar 7 at 5:46






  • 1





    Thanks FluffyKitten, I have Edited the code.

    – Cali
    Mar 9 at 1:35












  • 1





    Can you show us the HTML code that the css applies to, rather than the PHP?

    – FluffyKitten
    Mar 7 at 5:46






  • 1





    Thanks FluffyKitten, I have Edited the code.

    – Cali
    Mar 9 at 1:35







1




1





Can you show us the HTML code that the css applies to, rather than the PHP?

– FluffyKitten
Mar 7 at 5:46





Can you show us the HTML code that the css applies to, rather than the PHP?

– FluffyKitten
Mar 7 at 5:46




1




1





Thanks FluffyKitten, I have Edited the code.

– Cali
Mar 9 at 1:35





Thanks FluffyKitten, I have Edited the code.

– Cali
Mar 9 at 1:35












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034390%2fbootrap-4-collapse-not-collapsing-disappearing-on-page-scroll-on-ios-safari%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034390%2fbootrap-4-collapse-not-collapsing-disappearing-on-page-scroll-on-ios-safari%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme