How to hide content visually but make it available for Rich Snippets?

Hello,

I have a code for rich snippets that I want to put in my posts, but unfortunately I don't want the user's to see that code (doesn't look good). How can I add the code to my posts and make it only visible for the bots of the search engines? Will the bots see the code if I put it in the Wordpress Editor and use the Betheme option "Hide The Content"? If no, how can I make this content invisible for the users, but not the bots?

Thanks

Comments

  • Managed to do it with "display; none" but my sidebar still just begins when the post is already finished. The sidebar now begins under the comment section. Is there a way to get it back up where it should be?
  • Hi,

    please send us link to page where sidebar starts after the post so we can have a look on it.
  • edited December 2016
    Basically this happens in every Blog Post where I activate the sidebar since I started to add rich snippets.
  • Ok, thanks for the link because now everything is clear. Please open your website in Firefox html mode (CTRL+U) and check html errors you got. Please fix them first and all should be fine. Anticipating your question, yes, those errors are not associated with theme and were made by you or one of your extra plugins.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.