Add a code in to each "head" on cornerstone

Hi. I need to add a specific code from SUMO to pick a specific photo when pressing the share button on Pinterest. How can I add this code in to each new post head whilst working on cornerstone.
thank you C

Hello Corina,

Thanks for writing in! Could you please give us the code in your next reply? We need to determine if it is a PHP code or a JS code. Because you can insert the code differently so that it will be integrated and work with the theme.

Thank you in advance.

hi
below is the code
< meta property=“og:image” content= “http://ia.media-imdb.com/images/example. jpg” / >

On the end would be my https link from the dedicated photo the code should then be picked by pinterest. ONLY in BLOG POSTS I would like to insert this code.

hope this makes sense. Thank you

Hey Corina,

Thanks for sharing the code. That makes sense.

Your code is an Open Graph meta and that could not be added in Cornerstone neither there’s an interface in the theme to add that. It’s not because the theme lacks the feature. It’s because adding custom code to the <head> is best done via a plugin.

You can try following the methods in the link below:

If you don’t like coding, you can follow the plugin suggestions and if you want to code, follow the manual method.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.