Herhangi bir WordPress teması için Logo URL Bağlantısı nasıl değiştirilir? (Yaratılış Temaları dahil)
Yayınlanan: 2020-12-07
Crunchify'da, yalnızca herhangi bir değişiklik yapılmadan çalışan yüksek kaliteli öğreticiler ve kod parçacıkları yayınlıyoruz.
Yakın zamanda Premium hizmetleri de başlattık ve ayrıca premium eklentiler ve geliştirici hizmetleri satmaya başladık.
Yakın zamanda Premium sitemizi ( https://pro.crunchify.com
) değiştirdik ve temayı ana sitemizle ( https://crunchify.com
) eşleşecek şekilde eşleştirdik.
Bunu yaparken pro.crunchify.com'un başlık logosu URL'sinin crunchify.com'u göstermesinin daha iyi olduğunu fark ettik.
Aşağıdaki sorulardan herhangi birine sahipseniz bu çözüm işe yarar?
- Başlık resminin URL'si nasıl değiştirilir?
- Genesis Örnek Teması için logo url'sinde yapılan değişiklikler
- Ana başlık resminin URL'si nasıl değiştirilir?
- Başlık Resmi Bağlantısını Herhangi Bir URL'ye Nasıl Değiştirebilirim?
- Başlık Resmi bağlantısını özel URL'ye nasıl değiştirebilirim?
- Tıklanabilir bir banner'ın URL'si nasıl değiştirilir?
- WordPress'te Başlık Resmini Özel URL'ye Nasıl Bağlarsınız?
Bir süredir çözüm arıyordum ve Genesis WP destek ekibiyle de iletişime geçtim. Ancak bazı işaretçiler ve ipuçları dışında çözüm alamadım.

Gördüğünüz gibi Genesis support
ekibinden aldığım net bir çözüm yok.
Bundan sonra, WordPress'te Tıklanabilir Başlık Bağlantısını nasıl değiştireceğime hala bir çözüm arıyordum?
Sonunda bazı deneme yanılmalardan sonra başlık logosu URL'sini değiştirebildim.
İşte bir kod:
Basitçe temanızın function.php dosyasına koyun ve iyi olmalısınız. Benim durumumda bu kodu pro.crunchify.com theme's function.php
dosyasına koydum.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
function crunchify_custom_logo_url ( $ crunchify_logo_html ) { $ crunchify_custom_logo_id = get_theme_mod ( 'custom_logo' ) ; // Make sure to replace your updated site URL $ crunchify_new_url = 'https://crunchify.com' ; $ crunchify_logo_html = sprintf ( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>' , esc_url ( $ crunchify_new_url ) , wp_get_attachment_image ( $ crunchify_custom_logo_id , 'full' , false , array ( 'class' = > 'custom-logo' , ) ) ) ; return $ crunchify_logo_html ; } // get_custom_logo: Returns a custom logo, linked to home unless the theme supports removing the link on the home page. add_filter ( 'get_custom_logo' , 'crunchify_custom_logo_url' ) ; |
- Lütfen
crunchify_new_url
adresini istediğiniz URL ile değiştirdiğinizden emin olun.
Doğrulama nasıl yapılır?

Yukarıdaki kodun çalışıp çalışmadığını ve Google'ın Yapı meta veri gereksinimlerinin hiçbirini ihlal etmediğini kontrol edelim.
Bir göz atın ve iki HTML işaretlemesinin altında karşılaştırın.
WordPress başlık logosu URL'sini değiştirmeden önce
1 2 3 4 5 |
< div class = "title-area" > < a href = "https://pro.crunchify.com/" class = "custom-logo-link" rel = "home" > < img width = "946" height = "198" src = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" class = "custom-logo" alt = "crunchify-pro-logo-white" srcset = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png 946w, https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white-768x161.png 768w" sizes = "(max-width: 946px) 100vw, 946px" data - attachment - id = "2386" data - permalink = "https://pro.crunchify.com/crunchify-pro-logo-white/" data - orig - file = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" data - orig - size = "946,198" data - comments - opened = "1" data - image - meta = "{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data - image - title = "crunchify-pro-logo-white" data - image - description = "" data - medium - file = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" data - large - file = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" > < / a > < p class = "site-title" > Crunchify Pro < / p > < p class = "site-description" > Premium Services , Plugins & Digital Downloads < / p > < / div > |
WordPress başlık logosu URL'sini değiştirdikten sonra
1 2 3 4 5 |
< div class = "title-area" > < a href = "https://crunchify.com" class = "custom-logo-link" rel = "home" > < img width = "946" height = "198" src = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" class = "custom-logo" alt = "crunchify-pro-logo-white" loading = "lazy" srcset = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png 946w, https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white-768x161.png 768w" sizes = "(max-width: 946px) 100vw, 946px" data - attachment - id = "2386" data - permalink = "https://pro.crunchify.com/crunchify-pro-logo-white/" data - orig - file = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" data - orig - size = "946,198" data - comments - opened = "1" data - image - meta = "{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data - image - title = "crunchify-pro-logo-white" data - image - description = "" data - medium - file = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" data - large - file = "https://pro.crunchify.com/wp-content/uploads/2019/04/crunchify-pro-logo-white.png" > < / a > < p class = "site-title" > Crunchify Pro < / p > < p class = "site-description" > Premium Services , Plugins & Digital Downloads < / p > < / div > |
Her iki yapı işaretlemesi de iyi görünüyor ve gördüğüm tek fark Logo URL'si. Ve bu kadar .

Umarım bu, temanızın başlık logosu URL'sini değiştirmenize yardımcı olur.
Lütfen görüşlerinizi ve yorumlarınızı yorum yoluyla bize bildirmekten çekinmeyin.