Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View IgnacioGaldames's full-sized avatar
🚀
Desafío Latam

Ignacio Galdames IgnacioGaldames

🚀
Desafío Latam
View GitHub Profile
@IgnacioGaldames
IgnacioGaldames / custom-menu.php
Last active August 29, 2015 14:17
Wordpress menus via Functions
$menu_exists = wp_get_nav_menu_object( 'custom-menu');
// If it doesn't exist, let's create it.
if( !$menu_exists){
register_nav_menus(
array(
'custom-menu' => 'Mi Custom Menú',
)
);
$menu_id = wp_create_nav_menu('Mi Custom Menú');
@IgnacioGaldames
IgnacioGaldames / custom-taxonomy-terms.php
Last active August 29, 2015 14:17
Añadir terminos a custom taxonomy via functions
function insert_taxonomy_terms() {
wp_insert_term(
'Test',
'taxonomy',
array(
'description' => 'taxonomía via functions',
'slug' => 'test'
)
);
//funcion para agrandar o achicar el tama�o de letra (25/09/2003)
var max_size = 150;
var min_size = 50;
function dzIncreaseFontSize(idElemento) {
if (document.all || document.getElementById) {
var elemento = document.all ? document.all[idElemento] : document.getElementById(idElemento);
if (elemento) {
@IgnacioGaldames
IgnacioGaldames / exclude_taxonomy.php
Last active April 26, 2016 12:48
exclude custom taxonomy
<?php
$args = array(
'post_type'=>'casas',
'posts_per_page'=>4,
'orderby'=>'date',
'order'=>'DESC',
'tax_query' => array(
array(
'taxonomy'=>'categorias_casas',
'field' => 'slug',
@IgnacioGaldames
IgnacioGaldames / css
Created May 19, 2016 16:27
Wow and Animate fix
.wow {
visibility: hidden;
}
@IgnacioGaldames
IgnacioGaldames / .php
Created June 20, 2016 20:48
Wordpress excerpt limited
<?php echo substr(get_the_excerpt(), 0,50); ?>
/*
Bootstrap 3.3.6. dropdown nav menu on hover
*/
dropdown:hover > .dropdown-menu {
display: block;
}
@IgnacioGaldames
IgnacioGaldames / pre_code_wrap.css
Last active August 3, 2016 15:16
Pre, Code wrap
pre, code {
padding:30px;
box-sizing:border-box;
-moz-box-sizing:border-box;
webkit-box-sizing:border-box;
display:block;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<style type="text/css">
html {
font-size: 62.5%;
}
sudo npm install -g npm
sudo npm install -g express