This file contains 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
jQuery(document).ready(function( $ ) { | |
// $ Works! You can test it with next line if you like | |
// console.log($); | |
}); |
This file contains 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
/** | |
* DEBUGGING | |
*/ | |
function debug($data) { | |
print('<pre>'); | |
print_r($data); | |
print('</pre>'); | |
} |
This file contains 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 | |
$images = get_field('image'); | |
// we want to see whats inside, so we can instead use: | |
$images = get_field('image'); | |
debug($images); | |
?> |
This file contains 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 | |
// Enqueue scripts | |
wp_enqueue_script( string $handle, string $src = '', array $deps = array(), string|bool|null $ver = false, bool $in_footer = false ); | |
// Enqueue styles | |
wp_enqueue_style( string $handle, string $src = '', array $deps = array(), string|bool|null $ver = false, string $media = 'all' ); |
This file contains 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 | |
/** | |
* ENQUEUE SCRIPTS AND STYLES | |
*/ | |
function freshlondon_adding_scripts() { | |
wp_enqueue_script('my_amazing_jquery', get_template_directory_uri() . '/assets/js/jquery.min.js', false, '3.1.0', false); | |
wp_enqueue_script('my_amazing_slider', get_template_directory_uri() . '/assets/js/owl.carousel.js', array('my_amazing_jquery'), '1.0', false); | |
wp_enqueue_style('extra-fonts', get_template_directory_uri() . '/fonts/fonts.css', false, time(), 'screen'); | |
wp_enqueue_style('fa-icons', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', false, '5.6.3', 'screen'); |
This file contains 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
<!-- default theme stylesheet is loading here --> | |
<link rel='stylesheet' id='freshlondon-style-css' href='https://freshlondon.biz/wp-content/themes/freshlondon/style.css?ver=5.0.3' type='text/css' media='all' /> | |
<!-- ..and then the stylesheets that had style.css as their dependancy--> | |
<link rel='stylesheet' id='extra-fonts-css' href='https://freshlondon.biz/wp-content/themes/freshlondon/fonts/fonts.css?ver=1548499243' type='text/css' media='screen' /> | |
<!-- Did you notice the line above where it said 'fonts.css?ver=1548499243' <- this is the result of the PHP time() function we used! --> | |
<link rel='stylesheet' id='gist-styles-css' href='https://freshlondon.biz/wp-content/themes/freshlondon/assets/stylesheets/tomorrow-night.css?ver=5.0.3' type='text/css' media='screen' /> | |
<link rel='stylesheet' id='owl-carousel-css' href='https://freshlondon.biz/wp-content/themes/freshlondon/assets/stylesheets/owl.carousel.min.css?ver=5.0.3' type='text/css' media='screen' /> | |
<link rel='stylesheet' id='owl-carousel-theme-cs |
This file contains 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 | |
/* Template Name: Fullwidth | |
* @package THEME_SLUG_HERE | |
*/ | |
get_header(); |
This file contains 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
<? | |
global $_wp_additional_image_sizes; | |
print '<pre>'; | |
print_r( $_wp_additional_image_sizes ); | |
print '</pre>'; | |
?> |
OlderNewer