A Pen by Paul Ballardin on CodePen.
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
| // from here http://petragregorova.com/articles/social-share-buttons-with-custom-icons/ | |
| <div class="share-wrapper"> | |
| <button class="btn btn-default share-toggle alignright" data-toggle="popover">share <i class="glyphicon glyphicon-chevron-down" aria-hidden="true"></i></button> | |
| <div class="popper-content hide"> | |
| <?php | |
| $url = get_site_url() . '/' .get_the_permalink() ; | |
| $title = get_the_title(); | |
| $source = 'www.relPro.com'; |
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() { | |
| // run test on initial page load | |
| checkSize(); | |
| // run test on resize of the window | |
| $(window).resize(checkSize); | |
| }); | |
| //Function to the css rule | |
| function checkSize(){ |
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_filter('next_post_link', 'post_link_attributes'); | |
| add_filter('previous_post_link', 'post_link_attributes'); | |
| function post_link_attributes($output) { | |
| $code = 'class="styled-button"'; | |
| return str_replace('<a href=', '<a '.$code.' href=', $output); | |
| } |
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
| if ( has_post_thumbnail() ) { | |
| the_post_thumbnail(); | |
| } | |
| else { | |
| echo '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/thumbnail-default.jpg" />'; | |
| } |
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 3 Media Queries = | |
| ==================================================*/ | |
| /*========== Mobile First Method ==========*/ | |
| /* Custom, iPhone Retina */ |
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
| <a class="brand" href="<?php echo home_url(); ?>"> | |
| <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/dome-logo.png" alt="<?php bloginfo('name'); ?>"> | |
| </a> |
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 | |
| //Add excepts to pages | |
| add_action( 'init', __NAMESPACE__ . '\\my_add_excerpts_to_pages' ); | |
| function my_add_excerpts_to_pages() { | |
| add_post_type_support( 'page', 'excerpt' ); | |
| } | |
| ?> |
This is my free code camp zipline that allows a user to load the currrent weather for their lcoation.
A Pen by Paul Ballardin on CodePen.
A Pen by Paul Ballardin on CodePen.
NewerOlder