Last active
July 11, 2017 14:28
-
-
Save melissajclark/1e671f8853bf74a99e1f26ebac798061 to your computer and use it in GitHub Desktop.
Remodal example
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
<?php $modalID = basename(get_permalink()); ?> | |
<div class="teamMember"> | |
<?php the_post_thumbnail('teamMember'); ?> | |
<h4><?php the_title(); ?></h4> | |
<a href="#<?php echo $modalID;?>"><?php _e('Read Bio', 'wp-theme-name'); ?></a> | |
<div class="remodal teamMemberBio" data-remodal-id="<?php echo $modalID;?>"> | |
<button data-remodal-action="close" class="remodal-close"></button> | |
<h4><?php the_title(); ?></h4> | |
<?php the_content() ?> | |
</div><!-- .remodal (hidden team member content) --> | |
</div><!-- .teamMember --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment