This file contains hidden or 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
<!-- Modal --> | |
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5> | |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | |
</div> | |
<div class="modal-body"> | |
... |
This file contains hidden or 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
<script> | |
var modals = ["myModal1", "myModal2", "myModal3"]; | |
var rand = modals[Math.random() * modals.length | 0]; | |
jQuery(window).load(function(){ | |
setTimeout(function() { | |
jQuery('#' + rand).modal('show'); | |
}, 5000); | |
}); | |
</script> |
This file contains hidden or 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 4x includes the class "text-white" now, but what about any other color? */ | |
.text-gold { | |
color: #dec328; | |
} | |
/* | |
.text-any-color { | |
color: you-decide; | |
} | |
*/ |
This file contains hidden or 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
// With some Bootstrap 4 love. Of course, create a custom template for this. | |
<?php | |
/* do template stuff */ | |
get_header(); ?> | |
<div class="card-body"> | |
<?php | |
global $wpdb; |
This file contains hidden or 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 4 Carousel with WordPress Loop --> | |
<?php | |
$args = array( | |
'post_type' => 'post', | |
'category_name' => 'example-category' | |
); | |
$the_query = new WP_Query ( $args ); | |
?> | |
This file contains hidden or 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
//add instead of [submit] in Contact Form 7 (With Bootstrap 4 added) | |
<button type="submit" class="btn btn-lg btn-info btn-rounded">Send Message<i class="far fa-paper-plane fa-fw ml-3"></i></button> | |
// i class rather than <img src=""> with inline styles. | |
<i class="fas fa-spinner ajax-loader fa-pulse fa-4x"></i> |
This file contains hidden or 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
$(document).ready(function($){ | |
$(".bk-contact-modal").click(function(){ | |
$("#contactModal").modal('show'); | |
}); | |
$('#contactModal').on('shown.bs.modal', function () { | |
$('#userName').focus(); | |
}); | |
}); |
This file contains hidden or 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
<!-- The include file with the "do_shortcode" hook --> | |
<!-- ID for modal set to "contactModal" for javaScript purposes --> | |
<div class="modal fade" id="contactModal" tabindex="-1" role="dialog" aria-labelledby="contactModalLabel" aria-hidden="true"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title" id="contactModalLabel">Contact Ben:</h5> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> |
This file contains hidden or 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
<!-- contact modal --> | |
<?php include get_template_directory() . '/inc/myexamplemodal.php'; ?> | |
<!-- \\\\\\\\\\\\\ SCRIPTS //////////// --> | |
<?php wp_footer(); ?> | |
</body> | |
</html> |
This file contains hidden or 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
<?php if ( is_page( array( ID#, ID#, ID# ) ) ) | |
comments_template( '', true ); ?> |
NewerOlder