Skip to content

Instantly share code, notes, and snippets.

View andornagy's full-sized avatar

Andor Nagy andornagy

View GitHub Profile
<?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';
@andornagy
andornagy / gist
Last active January 1, 2016 01:29
https://gist.github.com/<username>/<gist-number>/
button {
/* Base Style */
position:relative;
padding:15px;
margin:10px;
width:250px;
/* Font Styling */
font-size:20px;
font-weight:bold;
<?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');
<?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 );
}
@andornagy
andornagy / genesis.php
Last active December 28, 2015 05:59
WordPress Post Navigations
<?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>