Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Seeking HELP! Simple solution to this problem Im sure! Reply To: Seeking HELP! Simple solution to this problem Im sure!

#156975
    <div id="footer">
    <div class="container">
        <div class="footer-bucket">
            <h2>Company</h2>
            <ul>
                <li><a href="/">Home</a></li>
                <li><a href="/products" title="View All"></a></li>
                {% for page in pages.all %}{% unless page.name contains '--lookbook' %}
                <li><a href="{{ page.url }}">{{page.name | replace: '--menu', '' | replace: '--footer', '' }}</a></li>
                {% endunless %}{% endfor %}
                <li>{{ pages.contact | link_to }}</li>
            </ul>
        </div>
        <div class="footer-bucket">
                      <h2>Lookbooks</h2>
                      <ul>

                {% for category in categories. %}
                {% assign cat_name = category.name %}
                {% assign open_sub = 0 %}
                {% unless category.name contains '--lookbook' %}
                    <li>{{ category | link_to }}
                        {% for category2 in categories.active %}
                        {% if category2.name != cat_name and category2.name contains cat_name and category2.name contains '--lookbook' %}
                        {% if open_sub == 0 %}
                            <ul class="sub-menu">
                                {% assign open_sub = 1 %}
                                {% endif %}
                                {% capture sub_cat_name %}{{ category2.name | remove: '--' }}{% endcapture %}
                                {% capture sub_cat_name %}{{ sub_cat_name | replace: cat_name, '' }}{% endcapture %}
                                <li>{{ category2 | link_to: sub_cat_name }}</li>
                                {% endif %}
                                {% endfor %}
                                {% if open_sub == 1 %}
                            </ul><!-- sub-menu -->
                        {% endif %}
                    </li>
                {% endunless %}
            {% endfor %}


              </ul>{% for page in pages.all %}
                {% if page.name contains '--lookbook' %}
                    {% capture pname %}{{ page.name | remove: '--lookbook' }}{% endcapture %}
                    <li><a href="{{ page.url }}" title="View {{ pname }}">{{ pname }}</a></li>
                {% endif %}
            {% endfor %}         
            <li class="last-child"><a href="/products" title="View All"></a></li>

        </div>