Roots Discourse

Sage 8.1.0 and Soil 3.1.0 Updates


#1

Originally published at: https://roots.io/sage-8-1-0-and-soil-3-1-0-updates/
New updates have been made to both Sage and Soil. The changelog is small and mostly minor for both projects. We’ve moved HTML5 Boilerplate’s Google Analytics snippet out of Sage and turned it into a Soil module. The option for adding a Google Analytics ID still exists in the theme config (lib/config.php) and the theme…


#2

How to update sage without losing my theme that i’ve build with sage and its configuration?


#3

Since Sage is a starter theme you usually don’t need to update. You can manually roll bring down changes, or you can do something like this:


#4

where do we add the analytics ID?


#5

You can add it in setup.php, with the other Soil stuff.

add_theme_support('soil-google-analytics', 'UA-XXXXX-Y', 'wp_footer');

Instructions are in the source


#6

Thanks! I found the code in a newer version of settings.php and setup() function.