-
AuthorPosts
-
okkhalid Friend
okkhalid
- Join date:
- November 2012
- Posts:
- 229
- Downloads:
- 2
- Uploads:
- 133
- Thanked:
- 3 times in 1 posts
May 14, 2014 at 5:23 pm #197774Hi,
I followed the http://www.joomlart.com/documentation/joomla-templates/ja-decor#custom-html
and I got my code from Addthis site: but the youtube icon doesnt show. only facebook and G+.Please help. thanks,
<!– AddThis Follow BEGIN –>
<div class=”addthis_toolbox addthis_32x32_style addthis_default_style”>
<a class=”addthis_button_facebook_follow” addthis:userid=”ddddd”></a>
<a class=”addthis_button_google_follow” addthis:userid=”ddddd”></a>
<a class=”addthis_button_youtube_follow” addthis:userid=”ddddd”></a>
</div>
<script type=”text/javascript” src=”//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-52c4dc6a6f54bdd9″></script>
<!– AddThis Follow END –>Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 15, 2014 at 9:43 am #535288You need to go to Addthis.com to register and get the button code. Then add userid in this module as follows:
<!-- AddThis Follow BEGIN -->
<div class="addthis_toolbox addthis_32x32_style addthis_default_style">
<a class="addthis_button_facebook_follow" addthis:userid="ddddd"></a>
<a class="addthis_button_google_follow" addthis:userid="ddddd"></a>
<a class="addthis_button_youtube_follow" addthis:userid="ddddd"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-52c4dc6a6f54bdd9"></script>
<!-- AddThis Follow END -->
and open templates/ja_decor/less/modules.less file, find and remove
.addthis_32x32_style .at15nc.at300bs,
.addthis_32x32_style .at15nc.at15t {
background-image: url("@{t3-image-path}/ico/social.png") !important;
height: 30px !important;
line-height: 30px !important;
width: 30px !important;
}.addthis_32x32_style .at15nc.at15t_twitter {
background-position: 0px -30px !important;&:hover {
background-position: -30px -30px !important;
}
}.addthis_32x32_style .at15nc.at15t_facebook {
background-position: 0px 0px !important;&:hover {
background-position: -30px 0px !important;
}
}.addthis_32x32_style .at15nc.at15t_google_follow {
background-position: 0px -60px !important;
&:hover {
background-position: -30px -60px !important;
}
}
okkhalid Friendokkhalid
- Join date:
- November 2012
- Posts:
- 229
- Downloads:
- 2
- Uploads:
- 133
- Thanked:
- 3 times in 1 posts
May 16, 2014 at 12:58 pm #535428Hi, I followed the steps, but still not able to get it done.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 17, 2014 at 8:47 am #535524<em>@okkhalid 427623 wrote:</em><blockquote>Hi, I followed the steps, but still not able to get it done.</blockquote>
Your site is using yellow theme, thus my solution above doesn’t work. I just fixed directly on your site.
In the templates/ja_decor/css/themes/yellow/template.css file, I added comment to the rules below.
/*.sticky-module .addthis_32x32_style .at15nc.at300bs,
.sticky-module .addthis_32x32_style .at15nc.at15t {
background-image: url("../../../images/ico/social.png") !important;
height: 30px !important;
line-height: 30px !important;
width: 30px !important;
}
.sticky-module .addthis_32x32_style .at15nc.at15t_twitter {
background-position: 0px -30px !important;
}
.sticky-module .addthis_32x32_style .at15nc.at15t_twitter:hover {
background-position: -30px -30px !important;
}
.sticky-module .addthis_32x32_style .at15nc.at15t_facebook {
background-position: 0px 0px !important;
}
.sticky-module .addthis_32x32_style .at15nc.at15t_facebook:hover {
background-position: -30px 0px !important;
}
.sticky-module .addthis_32x32_style .at15nc.at15t_google_follow {
background-position: 0px -60px !important;
}
.sticky-module .addthis_32x32_style .at15nc.at15t_google_follow:hover {
background-position: -30px -60px !important;
}*/Please check your site again.
okkhalid Friendokkhalid
- Join date:
- November 2012
- Posts:
- 229
- Downloads:
- 2
- Uploads:
- 133
- Thanked:
- 3 times in 1 posts
May 17, 2014 at 1:18 pm #535544HI, Thank you yes I can see its working now.
Is that possible to keep Jdecor black icons instead of this. ja decor social icon are black very nicer.
Thanks
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 19, 2014 at 4:24 am #535610@okkhalid: From this link your_domain/dcl/templates/ja_decor/images/ico/social.png, you will see it only works with facebook, twitter, google plus icons and the custom css style only works for those 3 icons.
That’s why you add new youtube button however it didn’t display on your site.
My fixed above just covers default style from Addthis, if you want to work with JA Decor as you expect, you have to change this image here your_domain/dcl/templates/ja_decor/images/ico/social.png and add new style for youtube button.
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by okkhalid 10 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum