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

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page