Okay
  Public Ticket #3019840
header logo
Closed

Comments

  •  1
    whatisbobo started the conversation

    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!)?

  •  1,877
    Judith replied

    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:

    add_filter('nectar_logo_url','salient_child_logo_url_mod');
    function salient_child_logo_url_mod() {  return 'http://themenectar.com';
    }
    

    Cheers


  •  1
    whatisbobo replied

    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



  •  1,877
    Judith replied

    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:

    3527023819.png

    Refer to this document https://www.competethemes.com/blog/find-page-id/ on how to locate a page or podt ID.

    Thanks.