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

Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices

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