How to activate Soil in Sage 9?

Hi,
I have:

  1. Sage 9 installed.
  2. Soil installed and activated in the WP admin area.
  3. The following in app/setup.php:
    setup-php
  4. The following in resources/views/partials/header.blade.php:
    header

However, when I checked the source html, it seemed like the plugin is not working.
At least the soil-clean-up and soil-nav-walker components.

What am I doing wrong?

#4 where did you get that code from? It’s not necessary, just use:

{!! wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'nav']) !!}
1 Like

Thank you @ben.

From your answer I understand that Soil’s NavWalker is the default walker when activated.

Actually, I tried that first - i.e., using the default code in Sage 9 as you suggested - but even then the markups in the generated html don’t look like soil-clean-up and soil-nav-walker are working in my case.

Please make sure Soil is installed and activated.

I hope I’m doing everything correctly.

I installed Soil using composer, and activated it in WP admin area (see image below).
Is there anything else I should do?

1 Like

I’m stumped — are any of the other activated Soil modules working for you, such as the clean up one? You can tell by viewing the source of the site and deactivating/reactivating the plugin

No. The clean up module isn’t working for me as well.
I’m guessing that if I’m the only one facing this issue, it means I’m doing something wrong. But I have no idea what it is.

The best idea for solving one-off problems is to start from scratch to achieve “working” stage.