• Resolved oskam

    (@oskam)


    Hi,

    I want to change the URL in the site logo to an other URL.
    Now if you click on the site logo it goes to the home url.

    I want the url in the logo to point to the shop on my site.

    Hope you can help me.

    Thanks Henk

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Replace your child theme header.php line number 37 to 39

    <div class="themonic-logo">
            <a href="<?php echo get_permalink( woocommerce_get_page_id( 'shop' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo esc_url( get_theme_mod( 'themonic_logo' ) ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
    		</div>

    Thanks
    Rajan V

    Rajan

    What if i dont want the logo to link to anything??

    Reason is, i have a home link in my menu, and dont want to share the link value with the logo ??

    Hope you can help
    Thanks Michael

    Thread Starter oskam

    (@oskam)

    Thanks Rajan V,

    The code is working on my offline site for testing.

    Only I have one small issue?

    In the top left corner of the screen there is a little code?

    ); ?>” />

    I have deleted the change and it’s still there.
    I never seen it before

    Do you know where the code ); ?>” /> is from?

    Thanks for the code

    Henk

    • This reply was modified 6 years, 9 months ago by oskam.

    Henk

    I can’t find this issue, Its may come with your custom theme typo error.

    Thread Starter oskam

    (@oskam)

    It’s working and it’s live

    Thanks Rajan V

    Have a nice weekend

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘change Link URL in site logo’ is closed to new replies.