Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Create a code snippet template


Ejo

Question

Evening all, I have need to create a button via a code block that I want to put on multiple product detail pages in my shop.  It's a button that does one thing and it needs to do the same thing on about 10 different products.  I'm wondering if there's a way to save these code snippets and add them to other pages without having to re-create the same code block 10 different times?

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

I don't think I made myself clear because my request doesn't require the need to look at my site.  Basically what I'm trying to do is create a re-usable piece of code - which in this case happens to be a button.  I don't want to have to re-type the code into every product page that needs this snippet.  I want to make my own button and re-use it anywhere I want.

Hopefully that is a little more clear.  Thanks.

Link to post
  • 0

You can assign a tag for these products, then use JavaScript to add button for products belong this tag.

Can you share link to page where you insert a button? We can check easier.

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...