Viewing 30 posts - 1 through 30 (of 32 total)
  • Author
    Posts
  • #927734

    Hi there,

    I have been searching and searching for a solution, but no luck. All I want to do is center icons created in a text block and/or in a footer widget – and I’ve tried EVERYTHING.

    The most recent solution I used worked before I updated the Enfold theme to 4.1

    <div class = "footer_centered" style = "text-align:center;"> <a href="https://www.facebook.com/"> [av_font_icon icon='ue8f4' font='entypo-fontello' size='40px'][/av_font_icon] </a> 
     <a href="https://twitter.com/"> [av_font_icon icon='ue8f2' font='entypo-fontello' size="40px"] </a>  <a href="https://instagram.com/"> [av_font_icon icon='ue909' font='entypo-fontello' size="40px"] </a> 
    </div>
    

    This was placed as a footer widget.

    I also have other areas where I’m just building a simple page and I want to add the social icons in one row, side by side, and centered. The above code got me the icons side by side, but not centered. I tried some basic html:

    <center><a href="https://www.facebook.com/"> [av_font_icon icon='ue8f4' font='entypo-fontello' size='40px'][/av_font_icon] </a> 
     <a href="https://twitter.com/"> [av_font_icon icon='ue8f2' font='entypo-fontello' size="40px"] </a>  <a href="https://instagram.com/"> [av_font_icon icon='ue909' font='entypo-fontello' size="40px"] </a> 
    </center>
    

    Same issue. What in the world am I doing wrong?

    Thanks!

    #927909

    Hey kellyCraftMedia,

    Try removing this class from the spans you are using:

    avia-icon-pos-left

    Best regards,
    Rikard

    #928265

    Hi Rikard! I’m not sure I understand – where is that located?

    #928614

    Hi,

    You are using shortcodes to generate that, correct? If so then you will find the class in the shortcode, please try to remove it from there.

    Best regards,
    Rikard

    #928816

    Hi Rikard,

    Still not making any sense – the code samples I gave you that I’m using don’t have avia-icon-pos-left in there at all, so I still don’t understand where I’m supposed to remove it from….

    Even if I were to generate the shortcode using the Avia text block there isn’t an avia-icon-pos-left in there either.

    So confused!

    #929070

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    #footer .avia-icon-pos-left {
        float: none !important;
        display: inline !important;
    }

    Best regards,
    Rikard

    #929270

    That worked, thanks!

    What happens when I want to add a row of icons in a standard Avia text box or other widgets? Is it strange that it requires custom CSS every time you want to center multiple icons in one row?

    Thanks!

    #929278

    Hi,

    The css should allow for responsiveness, meaning if you make further adjustments there should be no negative effect. Again, this is in theory, its really a case by case basis.

    Best regards,
    Jordan Shannon

    #1020097

    Hi team,

    Just wanted to follow up on something with this that is driving me bananas. What can I do to make social icons sit side-be-side and centered in a standard Avia text box?

    #1021011

    Hi,

    Were you able to figure this out? I see the social icons centred on the footer.

    Let us know if you need any further assistance.

    Best regards,
    Vinay

    #1021349

    Footer is fine, I’m speaking specifically to just a regular text box on any random page. I use Enfold on multiple sites (I bought multiple licenses!) so I’d love a way to make it work not just in the footer, but anywhere.

    #1021413

    Hi,

    The Social icons are center aligned by default. however, it scales the entire width of the parent container.

    If you like to set a custom width to the social icons and center align the elements please use the below CSS

    /* Remove icon border */
    #top .av-social-sharing-box .av-share-box ul li {    
        border-left-style: none;    
        display: inline-block;
        vertical-align: middle!important;
    }
    
    /* Icon style */
    #top .av-social-sharing-box .av-share-link a {
       margin: 0 10px 0 0; 
       width: 50px!important;
       height: 50px!important;
       border-radius: 30px!important;
    }

    For more code snippets and styles please check https://kriesi.at/documentation/enfold/social-share-buttons/

    Best regards,
    Vinay

    #1021753

    Didn’t work – but I’m not sure we’re talking about the same thing since the code snippets link you sent me was in reference to social share buttons. I’m just trying to center icons in a text box – in this case I have three icons (yes, they happen to be social media icons, but not the SHARE icons, just the standard Facebook, Twitter and Instagram links).

    To make it easier to know what I’m talking about, I’ve provided a link in the private content.

    Thanks!

    #1022306

    Hi kellyCraftMedia,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .html_header_transparency #top #av_section_1 .container {
        padding-top: 0;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1022417

    Didn’t work :(

    #1022840

    Hi,

    Have you tried adding the css to the very top of quick css so that it runs first? Also be sure to clear the cache a few times over.

    Best regards,
    Jordan Shannon

    #1022984

    Yes, that’s the first thing I did. This is the only CSS I have on the site – it’s just a splash page for now so I can’t wrap my head around why this is so problematic… ! Should be able to add three icons in a row, centered – right?

    Thanks!

    #1023086

    Hi,

    Sorry, previously I mentioned about social share icons. To align the Icon elements please double click the icon element and open the element options. Here you can align the icons to left, center or right as seen in the below screenshot:

    Best regards,
    Vinay

    #1023172

    I’m sorry i know this is frustrating because I am too! That doesn’t work either. Login credentials are included.

    #1023901

    Hi kellyCraftMedia,

    Best regards,
    Victoria

    #1025231

    No – they are not aligned.

    Sorry – this is SO frustrating.

    Again, the goal is to have each of the icons on ONE single line – horizontal – one column, side by side, aligned center. Not stacking on top of each other like in your screenshots and that are currently displayed on the site.

    #1025631

    Hi kellyCraftMedia,

    Sorry, I did not see anywhere that you wanted them in a row.

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
     .avia_transform #av_section_1 .avia_start_delayed_animation.av_font_icon {
        width: 80px;
        float: left;
    }
    
    #av_section_1 .avia_textblock  p  {
      padding-left: 34vw;
    } 
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1025647

    We’re getting close!

    1) How do I decrease the padding between icons?
    2) The icon set as a whole isn’t quite center – it’s somewhat too far to the right.
    3) The mobile version is a mess – see screenshot link in private info.

    #1026033

    Hi kellyCraftMedia,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width:1024px){
         .avia_transform #av_section_1 .avia_start_delayed_animation.av_font_icon {
            width: 50px;
            float: left;
        }
    
        #av_section_1 .avia_textblock  p  {
          padding-left: 37vw;
        } 
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1027838

    Hmm that doesn’t seem to be doing anything for me :/

    #1028231

    Hi,

    Have you added the code to the very top of quick css so it runs first and clear the cache a few times over.

    Best regards,
    Jordan Shannon

    #1028349

    Yep – and opened in incognito windows on 2 different devices. Didn’t resolve the centering issue.

    Mobile version is SLIGHTLY better but maybe not enough padding now – which one of the lines can I adjust to SLIGHTLY increase space between the icons?

    Thanks!

    #1029214

    Hi kellyCraftMedia,

    You can play with the values and work out the ones that work for you.

    
    @media only screen and (max-width:1024px){
         .avia_transform #av_section_1 .avia_start_delayed_animation.av_font_icon {
            width: 50px;  <------- This one will increase space between icons
            float: left;
        }
    
        #av_section_1 .avia_textblock  p  {
          padding-left: 37vw; <---- this will adjsut padding for you from the left
        } 
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1049413

    Hi Victoria,

    Finally managing to get in there and make the adjustments as you recommended – unfortunately nothing has worked.

    The issues I’m having are still:

    1) How do I decrease the padding between icons?
    2) The icon set as a whole isn’t quite center – it’s somewhat too far to the right (screenshot link in private content)
    3) On the mobile version, the icons are very much not centered.

    Sorry for all the back and forth – I’m stumped as to why this little icon thing isn’t easier!

    #1050373

    Hi,
    Sorry for the late reply, I took a look at your page and took the liberty to create a clone of it to test with, please see:
    /center-icons-test/
    I changed the color section ID so that none of your other css would be applied to this page.

    I noticed that in your text block element after your icons shortcode you have your text-align: center; I believe that you meant to wrap your icons shortcode with this.
    I then added a code block with a style rule so it would only apply it to this one page:

    <style>
    .av_font_icon {
    display: inline-block !important;
    }
    </style>

    The icons are now centered in a horizontal line for all screen sizes, please check.
    The vertical alignment could be adjusted some if you like.

    Best regards,
    Mike

Viewing 30 posts - 1 through 30 (of 32 total)
  • You must be logged in to reply to this topic.