The markup and styling of 14 social sharing buttons.
A Pen by Andor Nagy on CodePen.
<?php | |
function my_login_logo_url() { | |
return get_bloginfo( 'url' ); | |
} | |
add_filter( 'login_headerurl', 'my_login_logo_url' ); | |
function my_login_logo_url_title() { | |
return 'Your Site Name and Info'; |
https://gist.github.com/<username>/<gist-number>/ |
<?php | |
function get_my_header() { | |
// if is home, which is the front page | |
if(is_home()) { | |
// then get the header-home.php | |
get_header('home'); | |
<!-- thumbnail image wrapped in a link --> | |
<a href="#img1"> | |
<img width="200" height="200" src="img/img1.jpg"> | |
</a> | |
<a href="#img2"> | |
<img width="200" height="200" src="img/img2.jpg"> | |
</a> | |
<a href="#img3"> | |
<img width="200" height="200" src="img/img3.jpg"> | |
</a> |
<?php | |
//* Enqueue sticky menu script | |
add_action( 'wp_enqueue_scripts', 'custom_enqueue_script' ); | |
function custom_enqueue_script() { | |
wp_enqueue_script( 'sticky-menu', get_stylesheet_directory_uri() . '/js/sticky-menu.js', array( 'jquery' ), '', true ); | |
} |
<?php | |
/** Add post navigation (requires HTML5 support) */ | |
add_action( 'genesis_after_entry_content', 'genesis_prev_next_post_nav', 5 ); |
php_value memory_limit 64M |
<nav class="nav"> | |
<ul> | |
<li><a href="#"><i class="fa fa-home fa-2x"></i><Br/>Home</a></li> | |
<li><a href="#"><i class="fa fa-book fa-2x"></i><Br/>Tutorials</a> | |
<ul> | |
<li><a href="#"><i class="fa fa-desktop fa-1x"></i>Design</a></li> | |
<li><a href="#"><i class="fa fa-cog fa-1x"></i>Development</a></li> | |
<li><a href="#"><i class="fa fa-code fa-1x"></i>Graphics</a></li> | |
</ul> | |
</li> |