Tagged: social icons
-
AuthorPosts
-
January 15, 2018 at 7:24 am #897407
Hi
I’ve looked through a lot of other threads and partly found a solution but need some more help please.
I want to have social icons buttons for Facebook, Pinterest, Twitter, Instagram and YouTube in a text block on my homepage.I want them centered, custom colour #455a64 with white background, and bigger than the default size. Not sure exactly, maybe 20px?
My website isn’t live yet so I can’t paste a link, but can provide private log in details if you need them.So far I have the below in the text block and I have added custom CSS to remove the grey line separator. But, I’m missing Youtube and Instagram, they are aligned left and the wrong size/color.
Can you help?
Thanks
Kim<ul class=”noLightbox social_bookmarks icon_count_6″>
<li class=”social_bookmarks_facebook av-social-link-facebook social_icon_1″><span class=”avia_hidden_link_text”>Facebook</span>
<li class=”social_bookmarks_twitter av-social-link-twitter social_icon_2″><span class=”avia_hidden_link_text”>Twitter</span>
<li class=”social_bookmarks_pinterest av-social-link-pinterest social_icon_4″><span class=”avia_hidden_link_text”>Pinterest</span>January 17, 2018 at 3:56 am #898274Hey goingthewholehogg,
Is this what you had in mind:
If so, I put a code block in my page and added this code:<ul class="noLightbox social_bookmarks icon_count_5"><li class="social_bookmarks_twitter av-social-link-twitter social_icon_1"><a target="_blank" href="http://twitter.com" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Twitter"><span class="avia_hidden_link_text">Twitter</span></a></li><li class="social_bookmarks_facebook av-social-link-facebook social_icon_2"><a target="_blank" href="http://facebook.com" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Facebook"><span class="avia_hidden_link_text">Facebook</span></a></li><li class="social_bookmarks_pinterest av-social-link-pinterest social_icon_3"><a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Pinterest"><span class="avia_hidden_link_text">Pinterest</span></a></li><li class="social_bookmarks_instagram av-social-link-instagram social_icon_4"><a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Instagram"><span class="avia_hidden_link_text">Instagram</span></a></li><li class="social_bookmarks_youtube av-social-link-youtube social_icon_5"><a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Youtube"><span class="avia_hidden_link_text">Youtube</span></a></li></ul>
(Adjust the url’s to your social site’s)
having already Turned on Custom CSS Class field for all ALB Elements I added the class “custom-social”
Then I added this code in the General Styling > Quick CSS field:.custom-social .social_icon_1,.custom-social .social_icon_2,.custom-social .social_icon_3,.custom-social .social_icon_4,.custom-social .social_icon_5 { font-size: 40px; border-color: transparent; } .main_color .custom-social .social_bookmarks a { color: #455a64!important; } .avia_codeblock.custom-social { width: 400px; margin: auto; }
Best regards,
MikeJanuary 17, 2018 at 9:23 am #898344Hi Mike
Thanks so much for your help. They are almost perfect now, but they are still aligning left for me, not centered. How can I make them centered?
Also, when I hover on the icon there is still a colored square background that appears. Is it possible to get rid of this? So there’s no color background? Or if there must be a color can it be changed to #7fa6b8 instead of the standard social media colors?Thanks again
KimJanuary 17, 2018 at 11:54 am #898405Hi,
It should be centered because we have given the code block a width of 400px and margin of auto in the last two lines of code above, did you happen to change those lines or are you missing the last curry bracket? You can try adding !important; to it like this:.avia_codeblock.custom-social { width: 400px!important; margin: auto!important; }
If this doesn’t help, Can you please include a admin login in the private content area so we can take a closer look?
Try this code to give them a transparent background color:#top #wrap_all .custom-social li.av-social-link-youtube:hover a,#top #wrap_all .custom-social .av-social-link-instagram:hover a,#top #wrap_all .custom-social .av-social-link-pinterest:hover a,#top #wrap_all .custom-social .av-social-link-facebook:hover a,#top #wrap_all .custom-social .av-social-link-twitter:hover a { background-color: transparent; }
Best regards,
MikeJanuary 17, 2018 at 2:57 pm #898486Hi Mike
Thanks for this. It’s fixed the color background issue, but I’m still not getting them to align center. I had the original code in correctly, and I’ve added the updated code but still aligning left. I’ve added login to private message. If you can help that would be great.
Thanks
KimJanuary 17, 2018 at 9:26 pm #898674January 18, 2018 at 5:08 am #898864Hi
It’s http://www.goingthewholehogg.com but it’s not live yet, still under construction. Can you log in through wordpress?
Thanks
KimJanuary 18, 2018 at 10:52 am #899005Hi,
I took a look and found that using the text block element added align-left to the code, I replaced with the code block element. It still looked a little off so in the css I changed the width from 400px to 330px, if you wish to adjust, this is the value to do so.
Please clear your browser cache and check.Best regards,
MikeJanuary 18, 2018 at 12:27 pm #899096Thanks Mike, you’ve been a massive help. Looks great!
Kim
January 18, 2018 at 2:25 pm #899151January 18, 2018 at 2:27 pm #899152Yeah, go ahead and close it, thank you!
January 18, 2018 at 8:41 pm #899291 -
AuthorPosts
- The topic ‘Social Icons Buttons in Text Block’ is closed to new replies.