Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Change homepage’s logo link [duplicate]

The example code you’ve posted, as the documentation states, “Filters link URL of the header logo above login form” (emphasis mine). However, you are asking about changing the URL for the site logo (which I assume is somewhere in the header of every page).

Normally this is done via the theme customizer. Depending on the theme, however, this feature may or may not be implemented. In the twentynineteen theme, in the template template-parts/header/site-branding.php on line 13 you can see where the logo is printed: <div class="site-logo"><?php the_custom_logo(); ?></div>. The function the_custom_logo() includes all the HTML necessary to display the site logo and link.

Assuming you are using twentynineteen as the parent theme, you would need to do the following:

  1. Copy header.php from the parent twentynineteen theme into the root of your child theme
  2. Create a new folder in your child theme called template-parts
  3. Create a new folder inside template-parts called header
  4. Copy the file site-branding.php from the parent theme (in template-parts/header) into your child theme in the same location.
  5. Modify lines 12 through 14 of site-branding.php as needed (remove the existing lines 12 through 14 and add the A and IMG elements for the logo)

Again, the exact method for how you should do it depends entirely on the the theme you are using.

— Edited 2019-04-01 —

I don’t know what version of the Kalium theme you use nor if you are using the premium version but I did find a version online and it has a kalium_logo_url filter. Assuming this filter is present in your theme, if you add the following to the child functions.php file, it should do what you are intending:

add_filter( 'kalium_logo_url', function() {
   return '/home'; 
});

Please, if this solves your issue, mark this as the answer.

Related Posts:

  1. Dynamic logo/banner depending on affiliate link
  2. Add Developer Link on Homepage Only
  3. Displaying Most Recently Edited Post
  4. My home page is still showing link “localhost” [duplicate]
  5. Get parent page url to show up when it is in child pages
  6. Why is there a link tag with rel “profile” pointing to gmpg.org?
  7. How to use wpLink without editor?
  8. Add CSS Class to Link in TinyMCE editor
  9. How to print translation supported text with HTML URL
  10. Get the prev / next page links only (not title, etc)
  11. How to re-enable the links manager?
  12. Wondering how to turn your firefox bookmarks into a WordPress blog?
  13. How can I link to the most recent post in a category?
  14. Links redirecting to localhost after migration to server
  15. Is it possible to link to draft pages?
  16. How can I find all internal links that are pointing to post/page?
  17. Change logo url link
  18. Creating a Link Directory using WordPress?
  19. Count and show Clicks on external links in a single page/post
  20. How to use wp_rel_nofollow to add nofollow to external links only?
  21. get_category_link() is returning nothing
  22. Is there any way to set default for “Insert/Edit Link” to “Open link in new window”?
  23. root-relative links for multiple parked domains
  24. Get link value only from the_content()?
  25. How to splice in wp_links links into the loop?
  26. widget to output a link to archive view
  27. Is there an easy way to create a links index page?
  28. Can’t add a class to links in the visual editor since WP 3.1?
  29. What is the canonical way to link to pages?
  30. how can i add a menu link that goes to an external page
  31. Remove all links to a specific website
  32. HTTPS page link in menu
  33. Linking to page with all posts
  34. How do I remove or disable “Or link to existing content” in “insert link” dialogue?
  35. Retrieving all Links from a Post?
  36. Link Category Description
  37. Auto-embed link info from URLs in link post format?
  38. programatically change href to onclick=window.open
  39. Disable automatic content hyperlinking
  40. Open link in a new tab checked by default when adding a new link in visual post editor
  41. Deep linking to an accordion tab with Visual Composer
  42. Setting a page link in the footer?
  43. How to add/change a value of $wpdb property/var?
  44. Need advice on how to add links in users profile page?
  45. Generate Random Post Links Somewhere in the post
  46. How to hide a customization link themes menu in wordpress?
  47. Getting only the most recent bookmark?
  48. WordPress links/bookmarks – need to urlencode because spaces are getting stripped
  49. Custom Post Type archive link in WYSIWYG editor
  50. Add Link Text Back to Insert/edit link Box
  51. How to list all external URLs that I have posted on my WordPress blog?
  52. How do I make my navigation bar link to an external page?
  53. Plugin that inserts favicon next to links
  54. Create anchor from Wysiwyg editor
  55. Is there any way of changing the post order via user click?
  56. Get post / page ID from ACF Link field
  57. Creating a navigation link to my front-page
  58. How to remove author name and link from a shared link preview?
  59. wp_get_attachment_link to add title attribute to link tag around image
  60. Can I generate then display a mixed list of linked and unlinked terms
  61. Relative links for performance?
  62. Make page tab link to pdf
  63. Dont’t change active Button while I’m listing a category?
  64. How to change server name on WordPress Installation?
  65. How to prevent a page from being linked in the menu/crossbar
  66. How do i set the read more link?
  67. Plugin for wikipedia style references in WP?
  68. Problem creating an edit link for a custom post type
  69. How to convert all links to no follow links of particlular section of a webpage
  70. Linking from Menu and a Page to the latest post from a specific category
  71. Link to Homepage in Menu
  72. After duplicating site to a sub folder, links send user to original site
  73. Automaticly replace a link with other “new link”
  74. Links are not working on All Plugins Page
  75. How to add a WordPress page with multiple picture links?
  76. Enumerating over a category of links
  77. Is there a way to hide WordPress behind a web visible directory?
  78. Twitter links in widget don’t work?
  79. Links in nonalphabetic order
  80. Copy button for anchor link
  81. How to automatically nofollow a set domains? (I seem to have half of the answer)
  82. WordPress links https overwrite issue
  83. My custom link works only on home page
  84. Read more link to external webpage
  85. plugin admin subpage title and links in menu not highlited at current page
  86. Change Read More in Child theme
  87. Add text excerpt and pictures to hyperlinks?
  88. Default Link for TinyMCE “Add Link”
  89. WordPress changes URL?
  90. How to apply default post categories to link manager plugin
  91. Parent/child pages and link structure the right way
  92. How do I get link URLs from the WordPress links backend into an array?
  93. Link below the footer removal
  94. How to change all external links to “nofollow” but only for Contributor role?
  95. Is there anyway to use relative link instead of absolute link?
  96. How to link to local post
  97. How can I show different image links for different languages with qTranslate?
  98. How do I hide the ‘Edit’ link in publshed posts
  99. Exclude uploaded files from appearing in the excerpt()
  100. link to single most recent post, regardless of category
Categories links Tags homepage, links, logo
Merge tags in multistep Gravity Form?
switch combined with if statement

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress