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 / 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 / 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/
@elpuas
elpuas / device.css
Created November 20, 2017 20:36 — forked from jsoverson/device.css
Quick css hacks to target android/ios
.visible-android {
display:none;
}
.visible-ios {
display:none;
}
.on-device .visible-android, .on-device .visible-android {
display:inherit;
}
.device-ios .visible-android {
@elpuas
elpuas / function.php
Created June 29, 2019 23:42 — forked from mattclements/function.php
Wordpress Disable Comments (add to function.php)
<?php
// Add to existing function.php file
// Disable support for comments and trackbacks in post types
function df_disable_comments_post_types_support() {
$post_types = get_post_types();
foreach ($post_types as $post_type) {
if(post_type_supports($post_type, 'comments')) {
remove_post_type_support($post_type, 'comments');