Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1059015

    Hi there!!

    I am looking to center the footer widget content on mobile versions only – I was able to do that with the following code:

    @media only screen and (max-width: 680px) {
    #footer .widget {
      text-align: center;
    }}
    

    BUT in the middle (second for three) widget I have some social icons – those are not centering on the mobile version.

    Your help is be much appreciated!

    #1059193

    Hey kellyCraftMedia,

    Adjust your css to the following:

    @media only screen and (max-width: 680px) {
    #footer .widget {
    text-align: center;
    }
    .textwidget p:nth-child(5){
    margin-left:35%!important;
    }}

    Best regards,
    Jordan Shannon

    #1059500

    Thanks Jordan! But the social icons aren’t QUITE center and the other widget (the 2nd/middle of 3) with the hours got a little screwy! See screenshot link in private notes.

    Cheers!

    #1059561

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    CSS Snippet:

    
    /* CSS - */
    
    
    #footer .widget  p:nth-child(5) {
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    
    

    Best regards,
    Vinay

    #1059776

    SO close!

    Everything looks great except for on all Mac products – the included screenshot is taken in Safari. The mobile versions are good, just the desktop footers are a little off.

    Thank you!

    #1061365

    Hey all! Just checking in ❤

    #1061420

    Hi,

    You need to move this css code:

    #footer .widget  p:nth-child(5) {
        text-align: center;
        display: flex;
        justify-content: center;
    }
    

    … inside the mobile css media query because it is affecting the desktop view.

    Best regards,
    Ismael

    #1062046

    I gave that a try but nothing is working.

    I reverted back to my original code since it looks better for now – so I’m back to the original problem where the social media icons are not centering in mobile view (the rest of the footer is fine!)

    Thank you,

    #1062613

    Hi,

    Thanks for the update.

    Use this css code to center align those icons.

    @media only screen and (max-width: 768px) {
    #footer .widget#text-3 .textwidget p {
        display: inline-block;
    }
    }

    Best regards,
    Ismael

    #1069237

    This is great! There’s a little bit of extra space to the right of the last icon – how would I get rid of that for just that icon?

    Thanks!

    #1069771

    Hi kellyCraftMedia,

    Try adding this also inside the media query:

    #footer .widget#text-3 .textwidget p .av_font_icon {
        display: inline-block;
        float: none;
    }

    Best regards,
    Nikko

    #1069776

    You are THE BEST. The best support team ever. Thank you!!

    #1069910

    Hi kellyCraftMedia,

    Thanks for your kind words, we appreciate it :)
    Glad that we could help.
    Thanks also for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Center footer widgets in mobile only’ is closed to new replies.