Skip to content

Instantly share code, notes, and snippets.

View bibliofille's full-sized avatar

Debbie Labedz bibliofille

  • Bibliofille Creative
  • United States
View GitHub Profile
@bibliofille
bibliofille / gist:eb68f64bc5754b2c10f8
Last active August 29, 2015 14:23
ACF image grid
<?php
if ( get_field('portfolio_images' ) ) :
while ( the_repeater_field( 'portfolio_images' ) ) :
$image = wp_get_attachment_image_src(get_sub_field('portfolio_image'), 'portfolio');
// url = $image[0];
// width = $image[1];
// height = $image[2]; ?>
<div class="grid">
@bibliofille
bibliofille / gist:6a7d858029b346bf09b5
Created July 16, 2015 14:40
horizontal social menu issues
/* HTML */
<ul id="social">
<li><a href="http://houzz.com/"><img src="http://test.jgdesignchicago.com/wp-content/uploads/2015/07/houzz_grey.png" alt="Houzz" width="40" height="40" onmouseover="this.src='http://test.jgdesignchicago.com/wp-content/uploads/2015/07/houzz_blue.png';"
onmouseout="this.src='http://test.jgdesignchicago.com/wp-content/uploads/2015/07/houzz_grey.png';"></a></li>
<li><a href="http://pinterest.com/"><i class="fa fa-pinterest fa-2x"></i></a></li>
<li><a href="http://plus.google.com/"><i class="fa fa-google-plus fa-2x"></i> </a></li>
<li><a href="http://facebook.com/"><i class="fa fa-facebook fa-2x"></i></a></li>
<li><a href="http://twitter.com/"><i class="fa fa-twitter fa-2x"></i></a></li>
<li><a href="http://google.com/"><img src="http://test.jgdesignchicago.com/wp-content/uploads/2015/07/refinedhaystack_grey.jpg" alt="Refined Haystack" width="60" height="38"onmouseover="this.src='http://test.jgdesignchicago.com/wp-content/uploads/2015/07/refinedhaystack_blue.jpg';"
@bibliofille
bibliofille / .css
Created July 21, 2015 14:41
media query issue
/*Mobile styling*/
@media screen and (min-width: 600px){
.site-content {
width: 100%;
}
@bibliofille
bibliofille / gist:eba7fef4b9b7030fb90d
Created November 3, 2015 22:48
testimonial slider
<div class="flexslider">
<ul class="slides">
<?php
$rows = get_field('testimonials');
if($rows) {
foreach($rows as $row) {
$output = "<li>\n";
@bibliofille
bibliofille / functions.php
Created November 7, 2015 21:47
testimonial slider
function my_scripts_method() {
wp_enqueue_script('jquery');
wp_enqueue_script('flexslider', get_stylesheet_directory_uri().'/js/jquery.flexslider-min.js', array('jquery', true));
wp_enqueue_script('flexslider-init', get_stylesheet_directory_uri().'/js/flexslider-init.js', array('jquery', 'flexslider', true));
}
add_action('wp_enqueue_scripts', 'my_scripts_method');
<!doctype html>
<!--[if lt IE 7]><html lang="en-US" class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html lang="en-US" class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html lang="en-US" class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-US" class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<script src="https://use.typekit.net/cbo2aac.js"></script>
@bibliofille
bibliofille / 0_reuse_code.js
Created May 18, 2017 18:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console