Last active
January 4, 2019 17:33
-
-
Save roxanneallard/cdf0910c7c523a6aa5f38078226dedfe to your computer and use it in GitHub Desktop.
Collapse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
button.btn.collapsed:before { | |
content:'Lees verder' ; | |
} | |
button.btn:before { | |
content:'Sluit' ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<p class="intro">This sentence is always visible</p> | |
<div id="demo" class="collapse"> | |
<p class="body"> | |
This content is collapsible | |
</p> | |
</div> | |
<button type="button" class="btn collapsed" data-toggle="collapse" data-target="#demo" aria-expanded="false" aria-controls="collapseExample"></button> | |
</div><!-- .col --> | |
</div><!-- .row --> | |
</div><!-- .container --> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bootstrap | |
wp_enqueue_script( 'bootstrap-cdn-jquery', 'https://code.jquery.com/jquery-3.3.1.slim.min.js' ); | |
wp_enqueue_script( 'bootstrap-cdn-pop', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js' ); | |
wp_enqueue_script( 'bootstrap-cdn-js', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js' ); | |
wp_enqueue_style( 'bootstrap-cdn-css', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment