Jump to content

Archived

This topic is now archived and is closed to further replies.

btlinberg

Add Youtube Subscribe to Sharebar

Recommended Posts

btlinberg    2
btlinberg

Anyone using google's Youtube channel subscribe button?

 

I believe this is pretty new (as of July 2013) so I haven't seen any 3rd party plugins that allow it in a separate widget like DMS's built in sharebar. 3rd party plugins only seem to allow it on posts or pages. I'd love to see the addition in the DMS sharebar section.

 

Google supplies this as the code to add the button:

 

<script src="https://apis.google.com/js/plusone.js"></script> 
<div class="g-ytsubscribe" data-channel="Your Channel Name Here">
</div>

 

Perhaps I could create a textbox with this code along with google+, twitter, facebook, and pinterest code. Are there any other options out there?

 

-brad-


Brad Linberg - Cooking All Things Food, Health, Web, Design & Mobile
linbergcreative.com
---

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

I haven't heard of any plugins, but what you should probably do is:

 

1.  Add the script code to DMS Toolbar > Custom > Custom Scripts

2. Add the HTML i.e. <div class... to a MediaBox or TextBox.

 

This should work.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
btlinberg    2
btlinberg

That works. I'll have to see what I can do to get the alignment to match the others in the sharebar with a little CSS. Hopefully we'll see the youtube subscribe button in a future update to sharebar. Thanks for your help.

 

-brad-


Brad Linberg - Cooking All Things Food, Health, Web, Design & Mobile
linbergcreative.com
---

Share this post


Link to post
Share on other sites
Rob    547
Rob

Brad,

 

If you're trying to style it, I'd suggest wrapping the <div they provided with another, using a unique class of your own, then applying CSS to that unique class.

Something like <div class="my-g-y"><div class="g-ytsubscribe" data-channel="Your Channel Name Here"></div></div>

 

Then, you can set CSS like:

.my-g-y {color: red;}

 

(that's just for an example).


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • arno
      By arno+
      The counter next to the icon in the Sharebar extension adds more mess than value for us. 
      Is there an easy way/code to hide the counter? (so that the icons line up closer?)
    • bnapoli
      By bnapoli+
      Is there an easy CSS fix to change the social media icons in Sharebar so they are colored, not just on hover?
    • MissT
      By MissT+
      Regarding the 'global option' mentioned by Simon in this previous post (to turn off the facebook opengraph data if you are using another plugin that provides it) ...where is this option? I don't seem to be able to find it.
      Many thanks in advance.
       
    • art23130
      By art23130+
      We had a very nice shortcodes library and hooker in the previous version of the platform. But in the version 5 they are missing. 
      So are you going to improve it again in future or no they are not supported anymore? 
      and one more question, what do you suggest for sharing bar which we had in DMS2 ?
      Thanks for your effort 
    • Audun MB
      By Audun MB+
      Currently my sharebar looks like this:

      Why is there a number next to LinkedIn? Is it supposed to show number of shares? 
      When I try to share anything, facebook just closes again, and the rest allows me to share "undefined undefined". 
      This might be because my site is restricted, but it seems weird?
       
       
       
×