This commit is contained in:
2026-07-04 20:21:21 +03:00
parent 67a262fede
commit 913a186954
10 changed files with 15 additions and 2 deletions

View File

@@ -98,6 +98,18 @@ function sev_tort_meta_tags() {
printf( '<link rel="canonical" href="%s">' . "\n", esc_url( home_url( '/' . $page['slug'] . '/' ) ) );
}
add_action( 'wp_head', 'sev_tort_favicon_tags', 2 );
function sev_tort_favicon_tags() {
$favicon_uri = get_stylesheet_directory_uri() . '/assets/images/favicon/';
printf( '<link rel="icon" href="%s" sizes="any">' . "\n", esc_url( home_url( '/favicon.ico' ) ) );
printf( '<link rel="icon" type="image/png" sizes="32x32" href="%s">' . "\n", esc_url( $favicon_uri . 'favicon-32x32.png' ) );
printf( '<link rel="icon" type="image/png" sizes="16x16" href="%s">' . "\n", esc_url( $favicon_uri . 'favicon-16x16.png' ) );
printf( '<link rel="apple-touch-icon" sizes="180x180" href="%s">' . "\n", esc_url( $favicon_uri . 'apple-touch-icon.png' ) );
printf( '<link rel="icon" type="image/png" sizes="192x192" href="%s">' . "\n", esc_url( $favicon_uri . 'android-chrome-192x192.png' ) );
echo '<meta name="theme-color" content="#fff8f3">' . "\n";
}
add_filter( 'pre_get_document_title', 'sev_tort_document_title' );
function sev_tort_document_title( $title ) {
$page = sev_tort_current_page_config();