Title: Adding Custom Logo link
Last modified: November 20, 2018

---

# Adding Custom Logo link

 *  Resolved [aleejelly](https://wordpress.org/support/users/aleejelly/)
 * (@aleejelly)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adding-custom-logo-link/)
 * Hi there,
 * I am trying to get my logo to link somewhere other than the homepage. I’ve put
   this code in my child theme but because I’m not really sure what I’m doing. I
   don’t know how to actually put in where I want the logo to link…
 * [https://docs.oceanwp.org/article/473-change-custom-logo-url](https://docs.oceanwp.org/article/473-change-custom-logo-url)
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-custom-logo-link%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [AddWeb Solution](https://wordpress.org/support/users/addweb-solution-pvt-ltd/)
 * (@addweb-solution-pvt-ltd)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-logo-link/#post-10897765)
 * Hello aleejelly ,
 * To change link from logo, you will need to edit wp-content/themes/oceanwp/partials/
   header/logo.php – line no 59 Replace <?php echo esc_url( home_url( ‘/’ ) ); ?
   > this code to your desired URL.
 * Hope this will helps you.
 * Thanks.
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-logo-link/#post-10898517)
 * Hi,
 * In the code from the documentation, you will see the line `esc_url( 'oceanwp.
   org' )`. Change the oceanwp.org link to your custom link.
 *  Thread Starter [aleejelly](https://wordpress.org/support/users/aleejelly/)
 * (@aleejelly)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-logo-link/#post-10899597)
 * I’m an idiot. THANK YOU!
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-logo-link/#post-10899699)
 * You’re welcome!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Adding Custom Logo link’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.6/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

## Tags

 * [link](https://wordpress.org/support/topic-tag/link/)
 * [logo](https://wordpress.org/support/topic-tag/logo/)

 * 4 replies
 * 3 participants
 * Last reply from: [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/adding-custom-logo-link/#post-10899699)
 * Status: resolved