Skip to content

Instantly share code, notes, and snippets.

View marceloag's full-sized avatar

Marcelo marceloag

View GitHub Profile
@marceloag
marceloag / Alias .bash_profile
Created October 23, 2013 01:56
Alias en .bash_profile
#############################
# Mis Alias
#############################
alias clinode="ssh root@streaming.croop.cl"
alias cdh="ssh marceloag@walker.dreamhost.com"
@marceloag
marceloag / Menu Wordpress con estilo css
Created October 23, 2013 01:57
Llamar a un menu con un estilo particular en Wordpress
<?php wp_nav_menu( array('menu' => 'productos','menu_class' => 'productos-menu', )); ?>
@marceloag
marceloag / Ruta de Template WP
Created October 23, 2013 01:58
Ruta de Template en Wordpress
<?php bloginfo('template_directory'); ?>
@marceloag
marceloag / FontAwesome CDN
Last active January 31, 2023 17:01
FontAwesome CDN
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
@include transition-property(width);
@include transition-duration(2s);
@include transition-timing-function(ease-in);
@marceloag
marceloag / _custom.scss
Created January 13, 2015 12:53
Animation Compass
@include transition-property(all);
@include transition-duration(.2s);
@include transition-timing-function(ease-in);
@marceloag
marceloag / allpostsimages.php
Created February 10, 2015 18:37
Todas las imagenes de un post
<ul class="large-block-grid-2">
<?php
$attachments = get_children(array('post_parent' => $post->ID,
'post_status' => 'inherit',
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order ID'));
foreach($attachments as $att_id => $attachment) {
@marceloag
marceloag / _custom.scss
Created April 26, 2015 20:39
Full Width Row
.full{
width: 100%;
margin-left: auto;
margin-right: auto;
max-width: initial;
}
@marceloag
marceloag / _custom.scss
Created July 8, 2015 13:41
Full width row class
.full{
width: 100%;
max-width: 100% !important;
margin-left: auto;
margin-right: auto;
// max-width: initial;
}
<?php
add_theme_support('menus');
/**
* Register Menus
* http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus(array(
'top-bar-l' => 'Left Top Bar', // registers the menu in the WordPress admin menu editor
'top-bar-r' => 'Right Top Bar'