- <script src="//copybar.io/ACCOUNTNAME/ELEMENTNAME.js"></script>
- <script src="//copybar.io/ACCOUNTNAME/ELEMENTNAME.js"></script>
To serve this dynamic element directly from any dynamic website:
Send an HTTP GET
request to the following url:
http://copybar.io/ACCOUNTNAME/ELEMENTNAME
this will return just the HTML wrapper for the dynamic element content. You can render this directly onto your site.
or you can also include the inline editing tools:
http://copybar.io/ACCOUNTNAME/ELEMENTNAME?edit
To serve this dynamic element directly from your Ruby powered website:
Install the copybar
gem. Add this line to your Gemfile
gem "copybar"
and rebundle with the command:
bundle install
Use the helper anywhere in your views to include copybar html content:
<%= Copybar("ACCOUNTNAME", "ELEMENTNAME") %>
or to include editing tools:
<%= Copybar("ACCOUNTNAME", "ELEMENTNAME"), :edit => true %>
Source code and docs for the copybar gem is on Github
To serve this dynamic element directly from your PHP powered website
(including WordPress):
<?= file_get_contents('http://copybar.io/ACCOUNTNAME/ELEMENTNAME') ?>
or you can also include the inline editing tools:
<?= file_get_contents('http://copybar.io/ACCOUNTNAME/ELEMENTNAME?edit') ?>
You can create elements to use on the client side. Just add this html tag to the spot on the page where you want a Copybar element.
<script src="//copybar.io/ACCOUNTNAME/ELEMENTNAME.js"></script>