Tagged: x
-
AuthorPosts
-
November 2, 2016 at 9:12 pm #1241792
paulgnzParticipantHi there,
I’m trying to add a coinwidget to my page which ideally I want to appear in a text/raw code field – i’d like to have a little control over where to put it on the page rather than a widget area/sidebar.
I have added this: <script type=”text/javascript” src=”//blockr.io/js_external/coinwidget/coin.js”></script>
to my child theme functions.php (see below):________
add_action(‘wp_head’,’custom_script’);
function custom_script() {
?>
<script type=”text/javascript” src=”//blockr.io/js_external/coinwidget/coin.js”></script><?php
}
————Then I have this script to add, but I am unsure as to where this should be for it to render within the text/raw code on the page.
<script type=”text/javascript”>
CoinWidgetCom.go({
wallet_address: ’18zPpATQ9dfV5V91tw5QFaHPWqgqZzAkCc’,
currency: ‘bitcoin’,
counter: ‘count’,
lbl_button: ‘please give us coin for more coffee!’,
lbl_count: ‘donations’,
lbl_amount: ‘BTC’,
lbl_address: ‘Use address below to donate. Thanks!’,
qrcode: true,
alignment: ‘bl’,
decimals: 4,
size: “small”,
color: “dark”,
countdownFrom: “0”,
element: “#coinwidget-bitcoin-18zPpATQ9dfV5V91tw5QFaHPWqgqZzAkCc”,
onShow: function(){},
onHide: function(){}
});
</script>Any help is greatly appreciated.
Thanks!November 3, 2016 at 1:11 am #1241965
RupokMemberHi there,
It seems you are doing it right. So if the code is correct, it should work fine. Make sure to add if there is any other HTML associated.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1241792 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
