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
// Place in functions.php | |
/** | |
* Advanced custom fields - add sub pages to Options page | |
*/ | |
if( function_exists('acf_add_options_sub_page') ) | |
{ | |
acf_add_options_sub_page( 'Sidebar' ); | |
acf_add_options_sub_page( 'Footer' ); | |
} |
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
/* | |
Flexslider | |
*/ | |
jQuery(document).ready(function($) { | |
// Vertically center images in slider container when image height is greater than container height (larger screens) | |
function verticallyCenterImages() { | |
var containerHeight = $('.flexslider').height(); |
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 | |
add_filter( 'max_srcset_image_width', function (){ | |
return 1; | |
} ); | |
?> |
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 | |
/** | |
* Events custom post type has an ACF "end_date_time" which is a Date Time Picker field. | |
* This code creates list of all events that have not yet ended, sorted with | |
* the events that are ending soonest at the top of the list. | |
*/ | |
$now_date_time = new DateTime( 'now', new DateTimeZone( 'Australia/Melbourne' ) ); | |
$upcoming_events = []; |
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 | |
class PostTypeTaxonomyMirror { | |
private $post_type; | |
private $taxonomy; | |
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
<style> | |
/* Default styles */ | |
.section-text { | |
color: black; | |
} | |
.section-image { | |
width: 100%; | |
} | |
</style> | |
<div class="parent-container"> |
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 | |
/** | |
* Search results | |
* | |
* Example of a custom query using Search WP. Note this only needed if you need a custom query. | |
*/ | |
get_header(); |
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 | |
/** | |
* Default WordPress search form HTML | |
* | |
* The same HTML will be generated if you delete this partial and use get_search_form() | |
*/ | |
?> | |
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url(home_url('/')); ?>"> |
OlderNewer