-
Notifications
You must be signed in to change notification settings - Fork 102
Not able to customize social-cards #110
Comments
Same here. Social card shadowing: |
+1 as well. I tried shadowing gatsby-node.js and utils.js as well but then started getting errors like this:
So I seem to be stuck too. |
I have removed the social cards with reference to WPGraphQL's template. Now the preview looks like this |
I think the problem is caused by hardcoded in gatsby-node.js component which in that case can't be overridden with a component shadowing. Am I wrong? |
This is pretty lame, but I worked around the issue as follows.
You can see examples from the site here: |
@jimmyjayp that process sounds less than ideal. I'm looking into this and hoping to come up with a way to more easily configure these soon, it'll just require some careful thought and lots of testing here. I'll update this issue when I have more news 👍 |
We are trying to build our own doc by modifying required code from this one. To change design of card shown when sharing a url from the doc, I am making following two changes in the our version of the doc.
(1) Shadowing
social-card.js
file and changing the background image corresponding to as social-bg.jpg.After deploying it, it is showing the same card as before and the design is unchanged. Please checkout
components/social-card.js
andassets/social-bg.jpg
for our code.Is there anything more than that, that I should change? Please if anyone able to find a way to solve it, please reply as soon as possible.
The text was updated successfully, but these errors were encountered: