Skip to content

Instantly share code, notes, and snippets.

View elpuas's full-sized avatar
💻
coding

Alfredo Navas-Fernandini elpuas

💻
coding
View GitHub Profile
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
@elpuas
elpuas / designer.html
Created July 14, 2014 18:27
designer
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@elpuas
elpuas / Gruntfile.js
Created October 10, 2015 00:52 — forked from jpgcode/Gruntfile.js
Basic Gruntfile.js that allows you to start a node server, open the browser window, watch sass+compass, concatenate, minify and lint your JS.
'use strict';
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
//Add package.json reference
@elpuas
elpuas / display-customizer-text.php
Created September 26, 2016 17:17 — forked from neilgee/display-customizer-text.php
Customizer Text Block
<?php
// Change the footer text in Genesis with a back up if blank
add_filter('genesis_footer_creds_text', 'genesischild_footer_text');
function genesischild_footer_text() {
if( get_theme_mod( 'footer_text_block') != "" ) {
echo get_theme_mod( 'footer_text_block');
}
else{
@elpuas
elpuas / acf_slider_bootstrap
Created October 12, 2016 20:05 — forked from webgurus/acf_slider_bootstrap
Root's bootstrap slider example with Advanced Custom Fields Gallery plugin.
<?php
/* SLIDER CUSTOM FIELD FOR HOMEPAGE */
$images = get_field('slider_photos');
$count=0;
$count1=0;
if($images) : ?>
<div id="slider">
<div id="carousel" class="carousel slide">
<!-- Indicators -->
五 🍂🍂🍁

七 🍂🍂🍂🍁

五 🍂🍂🍁


@elpuas
elpuas / wc-pagination-functions.php
Created February 25, 2017 20:51 — forked from klihelp/wc-pagination-functions.php
WooCommerce shortcode pagination on pages
<?php
/**
* This code shows pagination for WooCommerce shortcodes when it's embeded on single pages.
* Include into functions.php.
*/
if ( ! is_admin() ) {
// ---------------------- FRONTPAGE -------------------
if ( defined('WC_VERSION') ) {
@elpuas
elpuas / .php
Created June 28, 2017 21:46
Tabbed Content
<div id="responsive-tabs">
<ul class="horizontal">
<?php
if (have_rows('tabs')):
$i = 1;
while (have_rows('tabs')):
the_row();
?>
<li><?php
echo '<a href= "#tab-' . $i . '">' . get_sub_field("tab_link") . '</a>';
@elpuas
elpuas / wordpress-post-thumbnail-grid-style.css
Created June 29, 2017 21:51 — forked from matthiaspabst/wordpress-post-thumbnail-grid-style.css
WordPress page template for a post thumbnail grid
/* Post Thumbnail Grid */
.gridcontainer h2 a{color: #333; font-size: 13px;}
.gridcontainer .griditemleft{float: left; width: 150px; margin: 0 30px 20px 0;}
.gridcontainer .griditemright{float: left; width: 150px;}
.gridcontainer .postimage{margin: 0 0 5px 0;}
.gridcontainer .postimage-title {text-align: center;}
@elpuas
elpuas / carousel-start.js
Created August 26, 2017 20:16 — forked from barbwiredmedia/carousel-start.js
bootstrap slider WordPress Dynamic Content ACF Custom Post Type loop Query Posts or gallery. Credit to Doug for this fantastic solution http://www.lanexa.net/2013/03/update-bootstrap-carousel-wordpress-dynamic-content/