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
add_filter( 'language_attributes', 'dc_change_html_lang' ); | |
function dc_change_html_lang( $attributes ) { | |
if ( is_page(42) ) { | |
$attributes = str_replace("nl-NL", "en", $attributes ); | |
} | |
return $attributes; | |
} |
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
/** I'm also wondering if plain "//" may also work, the idea to make the URL security-agnostic, so to speak. **/ | |
add_filter( 'genesis_attr_body', 'dc_dipak_body_attr' ); | |
function dc_dipak_body_attr( $attributes ) { | |
$attributes['itemtype'] = 'https://schema.org/WebPage'; | |
return $attributes; | |
} |
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
add_filter('excerpt_more', 'new_excerpt_more'); | |
function new_excerpt_more($more) { | |
$var = get_the_ID(); | |
return ' <a href="'. get_permalink($var) . '">Lire Plus...</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
add_action('sensei_comments', 'dc_do_comments_form'); | |
function dc_do_comments_form() { | |
comment_form(); | |
} |
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 comment_form(); ?> |
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
add_filter( 'comment_form_defaults', 'dc_remove_comment_form_allowed_tags' ); | |
function dc_remove_comment_form_allowed_tags( $defaults ) { | |
$defaults['comment_notes_after'] = ''; | |
return $defaults; | |
} |
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
.screen-reader-text, .screen-reader-text span, .search-form label { | |
clip: rect(0, 0, 0, 0); | |
height: 0; | |
position: absolute; | |
width: 0; | |
} |
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
add_filter( 'genesis_post_info', 'dc_post_info_filter' ); | |
function dc_post_info_filter($post_info) { | |
$var = do_shortcode('[post_comments zero="No Comments" one="1 Comment" more="% Comments"]'); | |
$post_info = 'Updated by ' . get_the_modified_author() . '     ' . $var; | |
return $post_info; | |
} |