Shopify Question
- Started
- Last post
- 13 Responses
- dbloc
is it possible to add an id to each nav link within a linklist?
- dbloc0
I want to be able to add a current class to shop when you are anywhere in the shop (collection page/product page/article page/cart page)
any tutorials on this?
- fadein110
this should have the info you need:
http://docs.shopify.com/support/…
- hotroddy0
{% for link in linklists.main-menu.links %}
{% case link.title %}
{% when 'Buy online' %}
<li class="shop-link"><a href="{{ link.url }}">{{ link.title }}</a></li>
{% when 'FAQ' %}
<li><a href="{{ link.url }}" title="Frequently asked questions">{{ link.title }}</a></li>
{% else %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% endcase %}
{% endfor %}
- hotroddy0
^ above won't help you. But a dirty way to do it is to inject css in
collection.liquid, page.liquid, product.liquidthe css would select the first
li:first {
float:left;
margin:0px 5px 5px 0px;
}
- dbloc0
I just want to add an ID to each nav item such as
id="shop"
id="about"
id="contact"
- dbloc0
with this I can check the last part of the url and add the class active to that link with jquery. I can't figure out another way to do it.
- dbloc0
This is what I'm working with...
http://jsfiddle.net/q5Nyr/Thanks for any help!!
- hotroddy0
{% unless template == 'index' or template == 'cart' %}
<nav id="category-menu" class="clearfix">
<ul>
{% for link in linklists.static-menu.links %}
<li class="{% if forloop.first %}first{% elsif forloop.last %}last{%endif%}">
<a href="{{ link.url }}" {% if collection.handle == link.handle or product.type == link.handle %} class="active" {% endif %}>{{ link.title }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% endunless %}- how do I work that into mine? check out the jsfiddledbloc
- dbloc0
bump bump.
- BusterBoy0
Just wondering if anyone could do me a favour...I just need a screengrab from the Shopify Admin area. I'd do it from a demo shop but I don't have any orders listed.
I just need a screen of the customer details with a couple of actual orders listed in the history. Just blur out the private info.
I'll be forever in your debt if you could help out!


