Enough people loved this gist, so it's now a Github repository!
⭐ Please use the "The Events Calendar Reset" on Github going forward. ⭐
<?php | |
function excerpt($limit) { | |
$excerpt = explode(' ', get_the_excerpt(), $limit); | |
if (count($excerpt)>=$limit) { | |
array_pop($excerpt); | |
$excerpt = implode(" ",$excerpt).'...'; | |
} else { | |
$excerpt = implode(" ",$excerpt); | |
} |
<?php | |
/* cleaup*/ | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds | |
remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed | |
remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link | |
remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file. | |
remove_action( 'wp_head', 'index_rel_link' ); // index link | |
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link |
// not for the Events Calendar posts but for an Events CPT or sommething similar that uses ACF fields for dates. | |
// example from https://idelic.com/resource-type/events/ | |
<?php | |
$today = current_time('Ymd'); | |
$post_query_args = array( | |
'post_type' => 'resources', | |
'posts_per_page' => -1, |
/* Add this to a stylesheet via Manage > Stylesheets in the top right of the builder */ | |
.wp-embed-responsive .cssAnimate { | |
opacity: 0; | |
} |
Enough people loved this gist, so it's now a Github repository!
⭐ Please use the "The Events Calendar Reset" on Github going forward. ⭐
// Import Bulma's core | |
@import "../../node_modules/bulma/sass/utilities/_all"; | |
// Import Bulma and Buefy styles | |
@import "../../node_modules/bulma/bulma.sass"; | |
@import "../../node_modules/buefy/src/scss/buefy"; |
// Utilities | |
@import "../../node_modules/bulma/sass/utilities/functions"; | |
@import "../../node_modules/bulma/sass/utilities/derived-variables"; | |
@import "../../node_modules/bulma/sass/utilities/mixins"; | |
@import "../../node_modules/bulma/sass/utilities/controls"; | |
// Base | |
@import "../../node_modules/bulma/sass/base/minireset"; | |
@import "../../node_modules/bulma/sass/base/generic"; |
@function vw($width) { | |
@return 100 * $width / 1380 * 1vw; | |
} | |
@function vwM($width) { | |
@return 100 * $width / 420 * 1vw; | |
} | |
$breakpoints: ( | |
'small': 767px, | |
'medium': 1000px, |
/* 見出し全体 | |
------------------------------*/ | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
} |