- This topic has 16 replies, 6 voices, and was last updated 6 years, 8 months ago by
Leo.
-
AuthorPosts
-
February 2, 2015 at 12:02 pm #71411
Jane
I am trying to find this in my site.”there’s a filter that allows you to change the URL of the logo/header.” Where do I find it? I have the GP Premium. thanks!
February 2, 2015 at 6:39 pm #71504Tom
Lead DeveloperLead DeveloperHi Jane,
You could add a PHP snippet like the below using this plugin: https://wordpress.org/plugins/code-snippets/
add_filter('generate_logo_href','generate_custom_logo_href'); function generate_custom_logo_href() { return 'http://google.com'; }Let me know if you need more info 🙂
April 30, 2017 at 12:00 pm #312291John
Tom,
I have just started with word press and generate press. I know very little about this. I am trying to change the url for the logo on a site I am building. I have read everything I can find on your questions and answers and I am trying to use the code snippet plugin to add this code you gave to one of your inquirers, but I’m just not getting it. I cant seem to find where to insert the code to even try it.
Can you help me with this. My site is http://www.palisades.pics I want my logo url to go to http://www.okveneer.com
Thanks,
Jack
April 30, 2017 at 1:11 pm #312320Leo
StaffCustomer SupportHi Jack,
Try copying and pasting the following code:
add_filter('generate_logo_href','generate_custom_logo_href'); function generate_custom_logo_href() { return 'http://www.okveneer.com/'; }into Code Snippet (https://docs.generatepress.com/article/adding-php/#code-snippets), click Save Changes and Activate then you should be good to go.
Let me know.
April 30, 2017 at 2:37 pm #312346John
I’m sorry,
I guess I have just been at it to long today.
Does the plugin add the code or do I have to put it into the header php and if I do where the head, body or etc.
Sorry to be so confused…………..
Thanks,
Jack
April 30, 2017 at 2:51 pm #312349Leo
StaffCustomer SupportThe Code Snippet plugin adds the code for you as long as it’s activated.
May 1, 2017 at 6:09 am #312517John
Thanks for working with me. This is all new to me.
Am I supposed to place the short somewhere and if so, where.
Thanks,
Jack
May 1, 2017 at 8:52 am #312559Leo
StaffCustomer SupportAm I supposed to place the short somewhere
Not sure what you meant?
This post should be everything you need to do: https://generatepress.com/forums/topic/header-logo-where-to-add-link/#post-312320
May 1, 2017 at 11:01 am #312634John
I’m sorry.
I meant to say Am I supposed to Place the short code somewhere?
Thanks,
Jack
May 1, 2017 at 11:02 am #312635John
I don’t know what I did but it is working now.
Thanks,
Jack
May 1, 2017 at 11:23 am #312646Leo
StaffCustomer SupportGlad it’s working!
May 2, 2017 at 6:28 am #312973John
Now I have an add below the footer on palisades.pics. How can I remove that?
The ad ( PHP Code Snippets Powered By : XYZScripts.com )
Thanks,
Jack
May 2, 2017 at 8:24 am #313017Tom
Lead DeveloperLead DeveloperLooks like that’s being added by the plugin you chose.
I would go with this one instead: https://en-ca.wordpress.org/plugins/code-snippets/
September 30, 2019 at 9:38 pm #1023002Kristian
Thanks for the good advice – just installed the plugin and added the snippet to my site: https://kviklaan.nu/kviklaan/ and it works like a charm
October 1, 2019 at 10:21 am #1023576Tom
Lead DeveloperLead DeveloperAwesome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.