Skip to content

Instantly share code, notes, and snippets.

View fernandiez's full-sized avatar

Fernan fernandiez

View GitHub Profile
@brenes
brenes / README.md
Last active April 9, 2024 23:24
CSV de paises, con nombre en castellano, ingles, codigo ISO y prefijo telefónico del país
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@jeffsebring
jeffsebring / responsive_wordpress.css
Created April 1, 2012 05:43
Responsive WordPress Core Theme Styles
/**
* Responsive WordPress Core Theme Styles
* http://jeffsebring.com/responsive-wordpress-images/
--------------------------------------------------- */
.sticky,
.bypostauthor,
.gallery-caption {
display: normal;
}
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@jentanbernardus
jentanbernardus / functions.php
Last active September 28, 2017 15:37
WordPress functions.php Template with 15 Essential Custom Functions (source:http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/)
<?php // custom functions.php template @ digwp.com
// add feed links to header
if (function_exists('automatic_feed_links')) {
automatic_feed_links();
} else {
return;
}
@aprakasa
aprakasa / gist:3774281
Created September 24, 2012 05:11
Simple social share
<!-- Twitter share -->
<a href="http://twitter.com/?status=<?php the_title(); ?>%20<?php echo wp_get_shortlink(get_the_ID()); ?>" onclick="window.open(this.href); return false;">TWITTER</a>
<!-- Facebook -->
<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title(); ?>" onclick="window.open(this.href); return false;">FACEBOOK</a>
<!-- Google plus -->
<a href="https://plus.google.com/share?url=<?php the_permalink();?>" onclick="javascript:window.open(this.href,'', 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes,height=600,width=600');return false;">Google plus</a>
<!-- Pinterest -->
@studiopress
studiopress / columns.css
Last active August 10, 2023 13:50
Genesis column classes.
/* Column Classes
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css
--------------------------------------------- */
.five-sixths,
.four-sixths,
.one-fourth,
.one-half,
.one-sixth,
.one-third,
@spigotdesign
spigotdesign / gist:5980046
Created July 11, 2013 22:54
Tribe Events WP_Query for today's events
<?php $current_date = date("Y-m-d H:i:s"); ?>
<?php $efeed = new WP_Query( array(
'post_type' => 'tribe_events',
'showposts' => 10,
'eventDisplay' => 'custom',
'start_date' => $current_date,
'end_date' => $current_date
));
?>
<?php
add_action( 'genesis_entry_content', 'theme_prefix_address' );
/**
*
* Display an address using
* Genesis column classes and ACF.
*
* @author Angie Meeker
* @uses Advanced Custom Fields
*/
/**
* Add a slider to the home page, if there is one to add
*
* @link http://blackhillswebworks.com/?p=4986
*/
add_action( 'genesis_before_content', 'metro_home_add_soliloquy_slider' );
function metro_home_add_soliloquy_slider() {