Skip to content

Instantly share code, notes, and snippets.

View morenojavier's full-sized avatar

Javier Moreno morenojavier

View GitHub Profile
@morenojavier
morenojavier / Wordpress
Last active October 20, 2017 14:26
Wordpress: Tags con separador para blog.
<?php
$tags = get_the_tags();
if( $tags ) :
echo '<p class="taxonomy"><span class="tag-title">'.__('Tags: ', 'warp').'</span>';
foreach( $tags as $tag ) {
$names[] = '<span class="'. $tag->slug .'"><a href="'. get_tag_link($tag->term_id) .'">'. $tag->name .'</a></span>';
}
echo implode(' , ', $names ) .'</p>';
endif;
?>
@morenojavier
morenojavier / HTML > forms
Created October 20, 2017 17:15
Cambio de estilo en un form a un input file con CSS
<!-- HTML -->
<label for="file-upload" class="custom-file-upload">
<i class="fa fa-cloud-upload"></i> Custom Upload
</label>
<input id="file-upload" type="file"/>
/* CSS */
+ function(a) {
"use strict";
function b(a, b) {
if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
}
var c = function() {
function a(a, b) {
for (var c = 0; c < b.length; c++) {
var d = b[c];
<div class="content_banner_pr">
<div class="grid-8 marginL">
<div class="flexslider posts-slider marginB">
<ul class="slides">
<li class="clone" aria-hidden="true" onClick="document.location='http://athestyleguide.com/revista/?edicion=45'">
<figure class="cPointer">
<a href="http://athestyleguide.com/revista/?edicion=45">
<img class="attachment-big-size wp-post-image" width="100%" alt="Banner" src="http://www.athestyleguide.com/wp-content/uploads/2018/01/SHAN_Banner_Slider_Portada_695x392.jpg" draggable="false">
</a>