- www.bibliofille.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="flexslider"> | |
<ul class="slides"> | |
<?php | |
$rows = get_field('testimonials'); | |
if($rows) { | |
foreach($rows as $row) { | |
$output = "<li>\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Mobile styling*/ | |
@media screen and (min-width: 600px){ | |
.site-content { | |
width: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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';" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> |