Autosave: 20260320-143356
BIN
assets/pasted-20260319-160345-9f17e586.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
assets/pasted-20260319-185541-c6f8fb91.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
@ -5,6 +5,35 @@
|
||||
* Version: 1.0.0
|
||||
*/
|
||||
|
||||
function fl_get_homepage_social_image_url() {
|
||||
$front_page_id = (int) get_option('page_on_front');
|
||||
if ($front_page_id > 0) {
|
||||
if (has_post_thumbnail($front_page_id)) {
|
||||
$thumb = wp_get_attachment_image_url(get_post_thumbnail_id($front_page_id), 'full');
|
||||
if (!empty($thumb)) {
|
||||
return $thumb;
|
||||
}
|
||||
}
|
||||
|
||||
$front = get_post($front_page_id);
|
||||
if ($front instanceof WP_Post && !empty($front->post_content)) {
|
||||
if (preg_match('/<img[^>]+src=["\\\']([^"\\\']+)["\\\']/i', $front->post_content, $m)) {
|
||||
return $m[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$custom_logo_id = (int) get_theme_mod('custom_logo');
|
||||
if ($custom_logo_id) {
|
||||
$logo = wp_get_attachment_image_url($custom_logo_id, 'full');
|
||||
if (!empty($logo)) {
|
||||
return $logo;
|
||||
}
|
||||
}
|
||||
|
||||
return get_site_icon_url(512) ?: '';
|
||||
}
|
||||
|
||||
function fl_seo_metadata_head() {
|
||||
if (is_admin()) return;
|
||||
|
||||
@ -14,6 +43,13 @@ function fl_seo_metadata_head() {
|
||||
$siteName = get_bloginfo('name');
|
||||
$siteDescription = get_bloginfo('description');
|
||||
|
||||
if (is_front_page()) {
|
||||
$homepageImage = fl_get_homepage_social_image_url();
|
||||
if (!empty($homepageImage)) {
|
||||
$projectImageUrl = $homepageImage;
|
||||
}
|
||||
}
|
||||
|
||||
$metaDescription = !empty($projectDescription) ? $projectDescription : $siteDescription;
|
||||
$metaTitle = is_front_page() ? $siteName : get_the_title() . ' | ' . $siteName;
|
||||
|
||||
|
||||
BIN
wp-content/uploads/2026/03/Coaching-Website-Intro.mp4
Normal file
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 259 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 551 KiB |