Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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>

    #898274

    Hey goingthewholehogg,
    Is this what you had in mind:
    2018-01-16_204846
    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,
    Mike

    #898344

    Hi 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
    Kim

    #898405

    Hi,
    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,
    Mike

    #898486

    Hi 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
    Kim

    #898674

    Hi,
    Please include the url to your site.

    Best regards,
    Mike

    #898864

    Hi
    It’s http://www.goingthewholehogg.com but it’s not live yet, still under construction. Can you log in through wordpress?
    Thanks
    Kim

    #899005

    Hi,
    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,
    Mike

    #899096

    Thanks Mike, you’ve been a massive help. Looks great!

    Kim

    #899151

    Hi,
    Glad we were able to help, shall we close this then?

    Best regards,
    Mike

    #899152

    Yeah, go ahead and close it, thank you!

    #899291

    Hi,
    Glad we could help, we will close this now. Thanks for using Enfold.

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Social Icons Buttons in Text Block’ is closed to new replies.