-
AuthorPosts
-
March 15, 2018 at 9:34 pm #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!
March 16, 2018 at 5:40 am #927909Hey kellyCraftMedia,
Try removing this class from the spans you are using:
avia-icon-pos-left
Best regards,
RikardMarch 16, 2018 at 8:47 pm #928265Hi Rikard! I’m not sure I understand – where is that located?
March 18, 2018 at 7:05 am #928614Hi,
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,
RikardMarch 18, 2018 at 10:53 pm #928816Hi 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!
March 19, 2018 at 2:32 pm #929070Hi,
Please try the following in Quick CSS under Enfold->General Styling:
#footer .avia-icon-pos-left { float: none !important; display: inline !important; }
Best regards,
RikardMarch 19, 2018 at 7:40 pm #929270That 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!
March 19, 2018 at 7:48 pm #929278Hi,
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 ShannonOctober 11, 2018 at 12:21 am #1020097Hi 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?
October 13, 2018 at 9:23 am #1021011Hi,
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,
VinayOctober 15, 2018 at 3:55 am #1021349Footer 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.
October 15, 2018 at 6:30 am #1021413Hi,
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,
VinayOctober 15, 2018 at 8:01 pm #1021753Didn’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!
October 16, 2018 at 6:28 pm #1022306Hi 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,
VictoriaOctober 16, 2018 at 9:55 pm #1022417Didn’t work :(
October 17, 2018 at 4:10 pm #1022840Hi,
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 ShannonOctober 17, 2018 at 7:39 pm #1022984Yes, 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!
October 18, 2018 at 2:37 am #1023086Hi,
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,
VinayOctober 18, 2018 at 7:21 am #1023172I’m sorry i know this is frustrating because I am too! That doesn’t work either. Login credentials are included.
October 19, 2018 at 12:38 pm #1023901Hi kellyCraftMedia,
Best regards,
VictoriaOctober 23, 2018 at 5:02 am #1025231No – 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.
October 23, 2018 at 9:21 pm #1025631Hi 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,
VictoriaOctober 23, 2018 at 9:47 pm #1025647We’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.October 24, 2018 at 6:20 pm #1026033Hi 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,
VictoriaOctober 30, 2018 at 4:37 am #1027838Hmm that doesn’t seem to be doing anything for me :/
October 30, 2018 at 10:34 pm #1028231Hi,
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 ShannonOctober 31, 2018 at 3:36 am #1028349Yep – 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!
November 2, 2018 at 5:01 pm #1029214Hi 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,
VictoriaJanuary 3, 2019 at 1:50 am #1049413Hi 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!
January 5, 2019 at 7:24 pm #1050373Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.