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
function domCustomCropBtn() { | |
?> | |
<script> | |
jQuery(document).ready(function($) { | |
//add a button right beside the add media button - adjust if you want the button somewhere else | |
let counter = 0; | |
$('.acf-field').each(function(){ |
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
/* stylelint-disable */ | |
a {} | |
/* stylelint-enable */ |
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
add_image_size('gebouw_galerij', 9999, 500, false); |
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
/** | |
* Remove editor from front-page | |
*/ | |
function dom_remove_support_front_end(){ | |
if((int) get_option('page_on_front')==get_the_ID()) { | |
remove_post_type_support('page', 'editor'); | |
} | |
} | |
add_action('admin_head', 'dom_remove_support_front_end',100); |
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
/** | |
* Small tinymce | |
*/ | |
function dom_small_tinymce() { | |
echo '<style> | |
.small .acf-editor-wrap iframe { | |
height: 150px !important; | |
min-height: 150px; | |
} | |
</style>'; |
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
/** | |
* Redirect CTP single to CPT archive. | |
*/ | |
function dom_single_redirect_post() { | |
$queried_post_type = get_query_var('post_type'); | |
if ( | |
is_single() && 'team' == $queried_post_type || | |
is_single() && 'kranten' == $queried_post_type || | |
is_single() && 'klanten' == $queried_post_type || | |
is_single() && 'geschiedenis' == $queried_post_type |
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
<a href="{{ get_post_type_archive_link('diensten') }}" class="btn btn-primary btn-back" title="{{ __('Terug naar overzicht', 'sage') }}"><i class="fas fa-angle-left"></i> {{ __('Terug naar overzicht', 'sage') }}</a> |
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
https://www.npmjs.com/package/custom-event-polyfill |
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
get_queried_object() |
OlderNewer