# Solidus SEO Successful stores keep SEO as a top priority. This Solidus extension adds common-sense defaults for structured data, meta tags, Open Graph protocol, and image optimization. Please note that we are still striving to improve this extension and we warmly welcome community contribution, engagement, and support. Let us know what you'd like to see added next; we promise to respond to any issues as soon as possible. ## Installation 1. Add `solidus_seo` to your Gemfile: ```ruby gem 'solidus_seo' ``` 2. Bundle your dependencies and run the installation generator): NOTE: *During this step, you will be prompted to decide whether or not you'd like to generate the overrides that are included in solidus_seo. These overrides require 'deface' and are intended to be used with solidus_frontend. If you are not using solidus_frontend, you'll have to figure out where is best to manually insert the solidus_seo helpers into your custom views. Continue reading for more information.* ```shell bundle bundle exec rails g solidus_seo:install ``` 3. Make sure you've added your store metadata from the Solidus store administration page, like SEO title, store URL and meta description. 4. (Optional) Override the stubbed methods and/or default helpers provided by this gem to provide extended functionality. [This is further explained below in the Usage section.] ## Usage ### Views As mentioned in the above section, we use [Deface](https://github.com/spree/deface) to insert some helpers that generate the meta and structured data. This, of course, only works if you're using/overriding the default Solidus views from [solidus_frontend](https://github.com/solidusio/solidus/tree/master/frontend). Otherwise, if you're using custom non-Solidus views, we assume you're smart enough to figure out for yourself where to put these helpers ;) Here are the changes we make, via deface, in the default Solidus views as part of the minimal installation: - In `spree/shared/_head.html.erb`: - Replace the `<%== meta_data_tags %>` line for `<%= display_meta_tags %>`. - Remove the `