Add additional data-nosnippet attributes

What the heck is wrong with Google?
This commit is contained in:
Tetrakern 2024-03-09 00:39:11 +01:00
parent 567b6d6968
commit aceeb11cd3
4 changed files with 6 additions and 6 deletions

View File

@ -231,9 +231,9 @@ function fictioneer_comment_form_args( $defaults = [], $post_id = null ) {
// Build arguments // Build arguments
$class_container = 'comment-respond fictioneer-respond'; $class_container = 'comment-respond fictioneer-respond';
$class_form = 'comment-form fictioneer-respond__form' . ( empty( $toolbar ) ? '' : ' _toolbar' ); $class_form = 'comment-form fictioneer-respond__form' . ( empty( $toolbar ) ? '' : ' _toolbar' );
$comment_notes_before = empty( $oauth_links ) ? '' : '<div class="fictioneer-respond__form-before-form"><div class="left">' . fcntr( 'log_in_with' ) . '</div><div class="right">' . $oauth_links . '</div></div>'; $comment_notes_before = empty( $oauth_links ) ? '' : '<div class="fictioneer-respond__form-before-form" data-nosnippet><div class="left">' . fcntr( 'log_in_with' ) . '</div><div class="right">' . $oauth_links . '</div></div>';
$logged_in_as = sprintf( $logged_in_as = sprintf(
'<div class="logged-in-as fictioneer-respond__form-before-form"><div class="left">%s</div></div>', '<div class="logged-in-as fictioneer-respond__form-before-form" data-nosnippet><div class="left">%s</div></div>',
sprintf( sprintf(
fcntr( 'logged_in_as' ), fcntr( 'logged_in_as' ),
$profile_link, $profile_link,

View File

@ -615,7 +615,7 @@ function fictioneer_chapter_paragraph_tools() {
$can_comment = ! get_post_meta( get_the_ID(), 'fictioneer_disable_commenting', true ) && comments_open(); $can_comment = ! get_post_meta( get_the_ID(), 'fictioneer_disable_commenting', true ) && comments_open();
// Start HTML ---> ?> // Start HTML ---> ?>
<div id="paragraph-tools" class="paragraph-tools"> <div id="paragraph-tools" class="paragraph-tools" data-nosnippet>
<div class="paragraph-tools__actions"> <div class="paragraph-tools__actions">
<?php if ( get_option( 'fictioneer_enable_bookmarks' ) ) : ?> <?php if ( get_option( 'fictioneer_enable_bookmarks' ) ) : ?>
<button id="button-set-bookmark" type="button" class="button"> <button id="button-set-bookmark" type="button" class="button">
@ -677,7 +677,7 @@ function fictioneer_chapter_suggestion_tools() {
} }
// Start HTML ---> ?> // Start HTML ---> ?>
<div id="selection-tools" class="invisible suggestion-tools"> <div id="selection-tools" class="invisible suggestion-tools" data-nosnippet>
<button id="button-add-suggestion" type="button" class="button button--suggestion"> <button id="button-add-suggestion" type="button" class="button button--suggestion">
<i class="fa-solid fa-highlighter"></i> <i class="fa-solid fa-highlighter"></i>
<span><?php _e( 'Add Suggestion', 'fictioneer' ); ?></span> <span><?php _e( 'Add Suggestion', 'fictioneer' ); ?></span>

View File

@ -15,7 +15,7 @@ defined( 'ABSPATH' ) OR exit;
?> ?>
<div id="tts-interface" class="tts-interface hidden" data-show-settings="false" data-regex="<?php echo esc_attr( FICTIONEER_TTS_REGEX ); ?>"> <div id="tts-interface" class="tts-interface hidden" data-show-settings="false" data-regex="<?php echo esc_attr( FICTIONEER_TTS_REGEX ); ?>" data-nosnippet>
<div class="tts-interface__wrapper"> <div class="tts-interface__wrapper">
<div class="tts-interface__controls"> <div class="tts-interface__controls">
<button id="button-tts-play" type="button" class="button play"> <button id="button-tts-play" type="button" class="button play">

View File

@ -123,7 +123,7 @@ get_header( null, $header_args );
data-link="<?php the_permalink(); ?>" data-link="<?php the_permalink(); ?>"
data-title="<?php echo esc_attr( $bookmark_title ); ?>" data-title="<?php echo esc_attr( $bookmark_title ); ?>"
data-story-title="<?php echo esc_attr( $bookmark_story_title ); ?>" data-story-title="<?php echo esc_attr( $bookmark_story_title ); ?>"
hidden> hidden data-nosnippet>
</div> </div>
<?php endif; ?> <?php endif; ?>