Comments 1whatisbobo started the conversationApril 7, 2022 at 7:11pmusing code you poster from another ticket to someone else ( https://themenectar.ticksy.com/article/10605/) i have changed the logo on a specific page . . .2 questions:- how to I add to this to make the link for the image point to a different place?- what is the cleanest way to do this for a number of pages without repeating the whols script. ( sorry im a bit of a script novice!)? 1,877Judith repliedApril 8, 2022 at 3:25amHi There,Thanks for choosing Salient.You can also modify this using the filter "nectar_logo_url" from your child theme functions.php file. An example would be: add_filter('nectar_logo_url','salient_child_logo_url_mod'); function salient_child_logo_url_mod() { return 'http://themenectar.com'; } Cheers 1whatisbobo repliedApril 8, 2022 at 9:30amsorry - not sure i understand what that would do - is that so i can select on each page which logo it has and where it points to? ( i am fairly new to scripts) Also - Have not created a child theme ( is that bad?)main thing i need to know is how doI alter the original code on here : https://themenectar.ticksy.com/article/10605/ to change the header for a number of different pages thanks 1,877Judith repliedApril 9, 2022 at 5:41amHi There,To alter the logo on each page you may have to change this page id for every page you would want to change the logo:Refer to this document https://www.competethemes.com/blog/find-page-id/ on how to locate a page or podt ID.Thanks. Sign in to reply ...
using code you poster from another ticket to someone else ( https://themenectar.ticksy.com/article/10605/) i have changed the logo on a specific page . . .
2 questions:
- how to I add to this to make the link for the image point to a different place?
- what is the cleanest way to do this for a number of pages without repeating the whols script. ( sorry im a bit of a script novice!)?
Hi There,
Thanks for choosing Salient.
You can also modify this using the filter "nectar_logo_url" from your child theme functions.php file. An example would be:
Cheers
sorry - not sure i understand what that would do - is that so i can select on each page which logo it has and where it points to? ( i am fairly new to scripts)
Also - Have not created a child theme ( is that bad?)
main thing i need to know is how doI alter the original code on here : https://themenectar.ticksy.com/article/10605/ to change the header for a number of different pages
thanks
Hi There,
To alter the logo on each page you may have to change this page id for every page you would want to change the logo:
Refer to this document https://www.competethemes.com/blog/find-page-id/ on how to locate a page or podt ID.
Thanks.