As stated by Google regarding hiding rich snippets from the user:
It can be tempting to add all the content relevant for a rich snippet in one place on the page, mark it up, and then hide the entire block of text using CSS or other techniques. Don't do this! Mark up the content where it already exists.
The problem I am looking at, however, is that in some frameworks this is excessively cumbersome as each of the desired rich snippets live in one of dozens of templates. From a developer perspective, this creates fragmented code all over the place which complicates the modular nature of the framework.
The main question is, what would be a good technique to use so that the rich snippets can exist all in one template? I've considered expanding on the concept of an 'SEO Block' which would live at the bottom of the page and provide the desired rich snippets, but this just seems messy and causes duplicate content.
Are there any other possible tricks to use here so that this markup can be hidden from a user? If I place the rich snippet content into a div that uses jQuery slideToggle()
, is that still 'hiding' the content as far as Google is concerned?