Skip to content
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

Shows info url button text #2

Open
charles-hood opened this issue Aug 23, 2019 · 2 comments
Open

Shows info url button text #2

charles-hood opened this issue Aug 23, 2019 · 2 comments

Comments

@charles-hood
Copy link

Is there any way to change the button text for the info url in shows.yml to say “Tickets” instead of detail/RSVP?

@charles-hood
Copy link
Author

The code that displays "Detail / RSVP" for the info_url is contained in this theme source file:
gatsby-theme-musician/theme/src/components/show-item.js

Unfortunately, for a site deployed to Netlify using the starter there is no way to modify this file as it is not copied to my local GitHub repository as part of the process.

@charles-hood
Copy link
Author

Component shadowing to the rescue! (Component Shadowing let’s you replace the theme’s original file with your own to implement any changes you need. Ref: https://www.gatsbyjs.org/blog/2019-04-29-component-shadowing/ )

So, I created this file (copied from theme) in my GitHut repository:
src/gatsby-theme-musician/components/show-item.js

I changed line number 70 to say:
Tickets

(instead of detail/RSVP)

Unfortunately there is no way to make it say Tickets only for ticketed events and RSVP for everything else. Everything has to be the same. But still, this is progress!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant