Home › Forums › Legacy Support › Support queries › Other issues › change header logo site URL
Tagged: custom URL to header logo
- This topic has 11 replies, 4 voices, and was last updated 5 years, 4 months ago by Anshuman Sahu.
Viewing 12 posts - 1 through 12 (of 12 total)
-
AuthorPosts
-
November 27, 2018 at 5:17 am #186021chetansonar84ParticipantHi, I would like to change the URL for header Logo, I have checked header.php and it uses vibe_site_url(). Kindly help me with the exact code change to replace vibe_site_url() with another URL. Check below screenshot to see existing code: https://prnt.sc/lnflai I am not a developer, your help will be appreciated. Thank you.November 28, 2018 at 5:41 am #186196DianaParticipant@chetansonar84 I am not getting why you want to change this header.php The header logo will always fetch the path whatever you will upload in wp-admin > WPLMS > HeaderNovember 30, 2018 at 8:16 am #186644chetansonar84ParticipantHi Diana, Because I have 2 subdomains and 1 main domain, the subdomain website also has same header logo which I am using for primary / main website. On subdomain page, when someone clicks on the header logo should go to primary website and not the subdomain website home page. For subdomains, I have placed the logo on the header image. Kindly check below websites : 1) https://apprend.in (main website) 2) https://aoamumbai.apprend.in (subdomain 1) 3) https://jobs.apprend.in (subdomain 2) I have checked wp-admin > WPLMS > Header and I am not finding a way to change the URL, it only allows me to upload logo and added header contents. Thank you.December 1, 2018 at 11:45 am #186883Anshuman SahuKeymasterplease try adding this given code in your wplms-customizer.php file in wplms customizer plugin : add_filter('wplms_site_link','site_lock_url_on_logo',10,2); function site_lock_url_on_logo($link,$location=null){ if(!empty($location) && $location == 'logo'){ $link = 'google.com'; } return $link; } replace " google.com " with your subdomain link.December 2, 2018 at 9:13 pm #186990chetansonar84ParticipantThank you for your response, I have WPLMS-customizer tool installed but WPLMS >> customizer section doesn't show any option to put this code. I tried adding in Custom CSS and also in "/home/apprend/public_html/wp-content/plugins/wplms-customizer/wplms-customizer.php " file, but it is not working. Kindly assist.December 3, 2018 at 7:28 am #187047loganMemberHey chetan, in custom css only styling related code works. Please goto wp-admin > plugins > editor > wplms-customizer.php; Refer: http://prntscr.com/lpyel3 add_filter('wplms_site_link','site_lock_url_on_logo',10,2); function site_lock_url_on_logo($link,$location=null){ if(!empty($location) && $location == 'logo'){ $link = 'https://www.google.com'; } return $link; } <hr> if it does not work, please share your url and wp-admin credentials in a private reply. we will make it work. good luck :)December 3, 2018 at 4:49 pm #187185chetansonar84ParticipantThank you for your response, appreciate your support. I have added the lines in the wplms-customizer.php file but logos of subsites (subdomains) are still going to their home page while they should go to main website page as I have added that URL in the code. I am using multisite environment, so I had to change this in the network dashboard >> plugins >> editor >> wplms-customizer.php Kindly check below screenshot: https://prnt.sc/lq6nq5December 4, 2018 at 12:02 pm #187316Anshuman SahuKeymasterWell this should have worked fine .Seems like the wplms customizer plugin is not activated on subsites .December 9, 2018 at 5:40 am #188095chetansonar84ParticipantHi, I have checked and WPLMS customizer plugin is enabled for sub-sites. Please help to find out what I am missing here.December 10, 2018 at 2:07 pm #188317Anshuman SahuKeymasterPlease share your valid ftp credentials in private reply to check and fix this .December 12, 2018 at 8:23 am #188579chetansonar84ParticipantThis reply has been marked as private.December 13, 2018 at 1:29 pm #188820Anshuman SahuKeymasterOkay this fixed .Needed some modification in code .
-
AuthorPosts
Viewing 12 posts - 1 through 12 (of 12 total)
- The topic ‘change header logo site URL’ is closed to new replies.