#92773 Adjust URL from the logo

Landing Forums Jupiter WordPress Theme Adjust URL from the logo

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • Tom Kellersohn

    Hello Artbees,

    how can the link behind the logo be adapted for special pages? I would like the visitor, after clicking on the logo on page “X”, to go to page “Y” instead of the homepage.

    Is there a possibility for this?

    Thanks a lot & best regards,

    Manuel

    Nodari Support Team

    hi Manuel

    Well, this is possible in header builder, you can create a custom header and when you add a logo you can link it to anything you want 🙂

    Hope it helps but if you need something else let me know

    Tom Kellersohn

    I would prefer a php snippet. To rebuild the header in the header builder afterwards would take too much time.

    Could you possibly help me with this?

    Nodari Support Team

    Hey Tom

    Can you provide url of your website? let’s try a snippet of Js first 😉

    Private
    Tom Kellersohn
    This reply has been marked as private.
    Amir Rather Support Team

    Hi There

    You can try my JS below (add to Theme Options > Advanced > Custom JS ) :

    jQuery('.header-style-1.header-align-left .header-logo a').attr("href","New-url");

    Regards

    Private
    Tom Kellersohn
    This reply has been marked as private.
    Tom Kellersohn

    Or do I have to enter as “href” the website on which I want to place the special link and as “New-Url” the target URL?

    Amir Rather Support Team

    You can use the https://themes.artbees.net/docs/inspecting-elements/ and find that pages id like https://take.ms/vlBJt

    Then the code would be like foe example,

    jQuery('.page-id-46 .header-style-1.header-align-left .header-logo a').attr("href","New-url");

    Regards

    Tom Kellersohn

    Works perfectly, thank you very much!

    Alexander Hutsol Support Team

    Hello,

    You are welcome 🙂

    Feel free to create a new topic if you have any other questions.

     

    Regards.

    Tom Kellersohn

    Hello all,

    how can I customise the link from the logo for a specific post only? Is it then theoretically only:

    jQuery(‘.post-id-1234  .header-style-1.header-align-left .header-logo a’).attr(“href”,”/my-custom-link/”);

    If so, unfortunately it does not work like that. Do you have a tip for me?

    Thank you & regards,
    Manuel

    Amir Rather Support Team

    Hi there,

    Yes, each post has its postid just like pageid’s so this is possible for Posts as well:

    jQuery('.post-id-46 .header-style-1.header-align-left .header-logo a').attr("href","New-url");

    If you could provide one post URL, we can provide you with the correct JS for that as an example.

    Regards

    Private
    Tom Kellersohn
    This reply has been marked as private.
    Tom Kellersohn

    Attached is a screenshot of the code:

    Amir Rather Support Team

    Hi

    This wasn’t working because the id is postid-5803 it doesn’t have a hyphen between post and id.

    Please check now.

    Regards

    Tom Kellersohn

    Yes, now it works. Thank you!

    Amir Rather Support Team

    You’re most welcome Tom 🙂

Viewing 18 posts - 1 through 18 (of 18 total)
You must be logged in to reply to this topic.
Login