How to remove the navigation drop-down menu when blog page

New Member
1 0 0

Hi,

I would like to avoid displaying the navigation drop-down menu when the page is the blog. Is it feasible?

I guess it would mean to alter the current piece of code in theme.liquid related to the display of the navigation menu:

        <section id="nav" class="row p30">
          <div class="span12">
            <nav class="main">
              {% include 'dropdown' %}
            </nav> <!-- /.main -->
          </div>
        </section>

But how do I code a condition like :

if page = blog then do nothing, otherwise include dropdown.

Maybe there is a need to loop over each blog in blogs. Not sure how it works

Thanks in advance

 

 

0 Likes
Highlighted
Tourist
9 0 1

Hi Clafoutis,

From your admin, check out Themes => Theme Settings => Navigation => Display recent articles in a dropdown under Blog links?

Disable that option and your set. 

Hope that helps,

Alan

0 Likes