diff --git a/wp-content/themes/sevastopol-tort-child/functions.php b/wp-content/themes/sevastopol-tort-child/functions.php index 37b6765..03221a1 100644 --- a/wp-content/themes/sevastopol-tort-child/functions.php +++ b/wp-content/themes/sevastopol-tort-child/functions.php @@ -83,12 +83,6 @@ function sev_tort_meta_tags() { $robots = ! empty( $page['indexable'] ) ? 'index, follow' : 'noindex, nofollow'; printf( '' . "\n", esc_attr( $robots ) ); - if ( 'politika-konfidencialnosti' === $page['slug'] ) { - printf( '' . "\n", esc_attr( 'Политика в отношении обработки персональных данных посетителей сайта sevastopol-tort.ru.' ) ); - printf( '' . "\n", esc_url( home_url( '/' . $page['slug'] . '/' ) ) ); - return; - } - if ( ! empty( $page['description'] ) ) { $description = ! empty( $page['seo_description'] ) ? $page['seo_description'] : $page['description']; printf( '' . "\n", esc_attr( $description ) ); @@ -117,12 +111,6 @@ function sev_tort_wp_robots( $robots ) { return $robots; } - if ( $page && 'politika-konfidencialnosti' === $page['slug'] ) { - unset( $robots['index'], $robots['follow'] ); - $robots['noindex'] = true; - $robots['nofollow'] = true; - } - if ( ! $page && is_front_page() ) { unset( $robots['noindex'], $robots['nofollow'] ); $robots['index'] = true; diff --git a/wp-content/themes/sevastopol-tort-child/inc/theme-data.php b/wp-content/themes/sevastopol-tort-child/inc/theme-data.php index acc0070..2a02916 100644 --- a/wp-content/themes/sevastopol-tort-child/inc/theme-data.php +++ b/wp-content/themes/sevastopol-tort-child/inc/theme-data.php @@ -360,7 +360,7 @@ function sev_tort_page_config( $slug, $label, $title, $description, $h1, $lead, 'lead' => $lead, 'image' => $image, 'style' => $style, - 'indexable' => 'politika-konfidencialnosti' !== $slug, + 'indexable' => true, 'content' => $content, ); } diff --git a/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php b/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php index f511b23..f676be7 100644 --- a/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php +++ b/wp-content/themes/sevastopol-tort-child/page-templates/page-service.php @@ -25,7 +25,7 @@ get_header();