New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add twitter card markup for PDP #9818
base: main
Are you sure you want to change the base?
Conversation
Manage this branch in SquashTest this branch here: https://spark-solutionssd-722-twitter-tqa2g.squash.io |
@@ -181,6 +181,17 @@ def image_source_set(name) | |||
set.join(', ') | |||
end | |||
|
|||
def og_image_pdp(product) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DevilCoders this tag is already added via #9809
<% content_for :head do %> | ||
<meta name="twitter:card" content="summary" /> | ||
<meta property="og:title" content="<%= @product.name %>" /> | ||
<meta property="og:description" content="<%= og_description(@product) %>" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<meta property="og:description" content="<%= og_description(@product) %>" /> | |
<meta property="og:description" content="<%= meta_data.description %>" /> |
@@ -0,0 +1,6 @@ | |||
<% content_for :head do %> | |||
<meta name="twitter:card" content="summary" /> | |||
<meta property="og:title" content="<%= @product.name %>" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<meta property="og:title" content="<%= @product.name %>" /> | |
<meta property="og:title" content="<%= title %>" /> |
<meta name="twitter:card" content="summary" /> | ||
<meta property="og:title" content="<%= @product.name %>" /> | ||
<meta property="og:description" content="<%= og_description(@product) %>" /> | ||
<meta property="og:image" content="<%= og_image_pdp(@product) %>" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<meta property="og:image" content="<%= og_image_pdp(@product) %>" /> | |
<meta property="og:image" content="<%= image_url_path %>" /> |
No description provided.