Skip to content

Instantly share code, notes, and snippets.

View ximosa's full-sized avatar

Joaquin Saez ximosa

View GitHub Profile
@ximosa
ximosa / abrir cerrar
Last active August 29, 2015 13:57
Abrir y cerrar shorcode contoogle de jquery para wordpress
/**
* añadir esto a tu init.js si tienes uno o crera uno y añadir ver
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
añadir
jQuery(document).ready(function(){
jQuery(".toggle_content").hide();
jQuery(".toggle_title").click(function() {
jQuery(this).toggleClass("toggle_active").next().slideToggle('fast');
return false;
@ximosa
ximosa / css gravity
Last active August 29, 2015 13:57
estilo css para gravity forms
.gform_wrapper ul {
padding-left: 0;
list-style: none; }
.gform_wrapper li {
margin-bottom: 15px; }
.gform_wrapper form {
margin-bottom: 0; }
@ximosa
ximosa / enlaces al copy
Last active August 29, 2015 13:57
Pegar enlace cuando te copian
Tynt auto-inserta un enlace cuando alguien copia y pega texto desde tu sitio, lo que puede animar al usuario a citar la fuente. Además, ofrece estadísticas interesantes sobre el número de copias realizadas, los enlaces ganados y el tráfico generado.http://www.tynt.com/product_copypaste.php
Otra forma de proteger nuestro documentos online es mediante su inscripción en el Registro de Propiedad Intelectual de SafeCreative: http://www.safecreative.org/
Para inscribir nuestros blogs o post, basta hacer un registro automatizado de nuestro FEED.
Aporta seguridad jurídica, y eficacia constitutiva, pues podemos presentar el certificado de autoria como medio de prueba contra los autores de plagio en un procedimiento judicial.
peguen este script antes de la etiqueta </html>
@ximosa
ximosa / dashicons
Created April 12, 2014 12:24
Poner iconos con :before
/* Codigo css paar añadir a ti style .css de tu tema
--------------------------------------------- */
p.entry-meta {
font-size: 16px;
margin-bottom: 0;
color: #bc360a;
}
.entry-header .entry-meta {
@ximosa
ximosa / 1functions.php
Created August 21, 2015 14:30
Agregando un Mensaje Sticky en genesis.
<?php
//* Do NOT include the opening php tag
//* Register sticky message widget area
genesis_register_sidebar( array(
'id' => 'sticky-message',
'name' => __( 'Sticky Message', 'bg-mobile-first' ),
'description' => __( 'This is the sticky message widget area.', 'bg-mobile-first' ),
) );
@ximosa
ximosa / css
Last active August 29, 2015 14:27
Personaliza Simple Social Icons
/* Simple Social Icons
--------------------------------------------- */
.simple-social-icons li.social-dribbble a {
border: 2px solid #ea4c89 !important;
color: #ea4c89 !important;
}
.simple-social-icons li.social-dribbble a:hover {
background-color: #ea4c89 !important;
@ximosa
ximosa / agregar a funtions.php
Created August 21, 2015 15:05
Cargando Fuentes de Google en genesis tema hijo
//* Load Google Fonts
add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' );
function bg_load_google_fonts() {
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,700|Neuton:400', array(), CHILD_THEME_VERSION );
}
@ximosa
ximosa / css botones compartir de genesis plugin
Created August 21, 2015 15:12
Configure los botones de compartir de Genesis Simple Share.
/* Genesis Simple Share
--------------------------------------------- */
.content a.count,
.content a.count:hover,
.content a.share,
.content a.share:hover {
border: none;
}
@ximosa
ximosa / gist:c07866e7f24f8110a38f
Created August 21, 2015 15:29
Cómo cargar estilos en Génesis
//* Añadir nuevo css
add_action( 'wp_enqueue_scripts', 'custom_load_custom_style_sheet' );
function custom_load_custom_style_sheet() {
wp_enqueue_style( 'custom-stylesheet', CHILD_URL . '/custom.css', array(), PARENT_THEME_VERSION );
}
//* Sustituir css por defecto por otro
add_filter( 'stylesheet_uri', 'custom_replace_default_style_sheet', 10, 2 );
function custom_replace_default_style_sheet() {
return CHILD_URL . '/custom.css';
@ximosa
ximosa / fracmentos genesis
Created August 21, 2015 16:20
Fragmentos de código para construir temas infantiles en Génesis.
Header
Custom Header Support
/** Add custom header support */
add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 100, 'textcolor' => '444', 'admin_header_callback' => 'minimum_admin_style' ) );
Remove Header
/** Remove Header */
remove_action( 'genesis_header', 'genesis_do_header' );
Remove Title & Description