Making my logo a link to my home page

Highlighted
New Member
31 0 0

Hi,

How do I make my custom logo link to my home page when clicked on?

 

 

0 Likes
Shopify Staff (Retired)
Shopify Staff (Retired)
5841 0 116

Something like this should work:

 

<a href="/"><img src="{{ 'my_logo.png' | asset_url }}" alt="My Logo"/></a>

 

 

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
New Member
31 0 0

Which part of the following would it replace or go after? (extracted from my theme.liquid file)

<body>
    <!--main holder-->
    <div id="main">
        <!--header-->
        <div id="header">
                        <div id="custom-logo">

            <!--logo-->
            <strong class="logo"><a href="/">{{shop.name}}</a></strong>

            <div class="shoping-bag">
                <a class="btn-shoping-bag" href="/cart">shoping bag</a>
                  {% if cart.item_count == 0 %}
                      <p>Your shopping bag is empty!</p>
                    {% else %}
                    <p><a href="/cart">My Shopping BAG has {{cart.item_count}} item{% if cart.item_count != 1 %}s{% endif %} - Total: {{cart.total_price | money_with_currency }}</a></p>
                {% endif %}

0 Likes
New Member
31 0 0

Hey Jamie,

Any idea where I should put the code? Refer to the above post...

0 Likes
Shopify Staff (Retired)
Shopify Staff (Retired)
5841 0 116

DOH! Sorry I missed this earlier. Crazy busy. Lets see...

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
Shopify Staff (Retired)
Shopify Staff (Retired)
5841 0 116

Well something is screwed up in your theme file. Did you edit this? There's no closing tag on the logo div for one. Do you have a link?

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes
New Member
31 0 0

Jamie, I totally understand and thank you for helping me with many of my questions thus far...

 www.flotender.com I'm not sure why my theme file is messed up...

0 Likes
New Member
31 0 0

Do you have any idea what the problem could be?

0 Likes
New Member
31 0 0

Any idea on the logo?

0 Likes
Shopify Staff (Retired)
Shopify Staff (Retired)
5841 0 116

Hey Chewie, Sorry I missed your post again and meant to follow up on this days ago. I can't really help you here until you get all your mark-up fixed. I think I linked to this in another thread you were asking about as well but you need to use the W3C Validator and clean up your code. Some of the issues will more than likely fix themselves. Right now you have too many errors to try to troubleshoot anything precisely.

http://shopifyplus.com ::: http://twitter.com/bacchus
0 Likes