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
/** | |
* Gravityforms background-color all field | |
*/ | |
add_filter("gform_email_background_color_label", "set_email_label_color", 10, 3); | |
function set_email_label_color($color, $field, $lead){ | |
return "#eeeeee"; | |
} | |
add_filter("gform_email_background_color_data", "set_email_data_color", 10, 3); | |
function set_email_data_color($color, $field, $lead){ |
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 change_search_url() { | |
$GLOBALS['wp_rewrite']->search_base = 'zoeken'; | |
} | |
add_action( 'init', 'change_search_url' ); |
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
$image = get_field('banner_image', $term->taxonomy . '_' . $term->term_id); |
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
get_queried_object() |
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
https://www.npmjs.com/package/custom-event-polyfill |
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
<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 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
/** | |
* 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 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
/** | |
* Small tinymce | |
*/ | |
function dom_small_tinymce() { | |
echo '<style> | |
.small .acf-editor-wrap iframe { | |
height: 150px !important; | |
min-height: 150px; | |
} | |
</style>'; |
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
/** | |
* 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); |
NewerOlder