Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1281032
    smsfthinker
    Participant

    Hello there,

    Can you please help me vertically align the social media icons in my topbar? I would like them to align with the H1 text ‘Blog With Confidence’ here http://blogwithconfidence.com/

    Thanks for your help.

    Helen

    #1281054
    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    Add this in your customizer > Custom > CSS:

    .x-topbar .x-social-global{
        margin-top: -90px;
    }

    It would not be responsive however you could play with @media queries CSS so that it would responsive.

    For example:

    
    @media max-width(767px){
    .x-topbar .x-social-global{
        margin-top: 10px;
    }}

    Hope it helps.

    Let us know how it goes.

    Thanks.

    #1281061
    smsfthinker
    Participant

    Thanks Nico,

    Is it possible to make it responsive by just centreing it within the topbar instead rather than trying to align it to specific text?

    Regards
    Helen

    #1281065
    Nico
    Moderator

    Hi There,

    Little confuse of what you want to achieve. Would you mind sharing us a screenshot of what you want to achieve.

    Thanks.

    #1281086
    smsfthinker
    Participant

    Hi Nico,

    1. Per attached screenshot I’d like the social icons to not sit on the bottom of the top bar. The first CSS code you gave me achieves that. Yay.

    2. But I also want them to be responsive on mobile devices. You mentioned that the CSS for moving the icons may cause them to become un-responsive which it did. I just thought they may be a way to achieve point 1. without having to add second CSS code to make it responsive.

    Regards,
    Helen

    #1281090
    smsfthinker
    Participant

    Oops, here’s a compressed screenshot.

    #1281092
    smsfthinker
    Participant

    Hi Nico,

    Alternatively maybe I could add them to the top menu bar instead?

    Regards,
    Helen

    #1281138
    Paul R
    Moderator

    Hi Helen,

    To fix it, you can add this under Custom > CSS in the Customizer.

    
    @media (max-width: 979px) {
       .x-topbar .x-social-global {
            margin-top: 0px;
            float:none;
            margin-bottom:20px;
            text-align:Center;
       }
    }
    

    After adding it, kindly clear your browser cache before checking.

    Thanks

    #1281179
    smsfthinker
    Participant

    Brilliant. Thanks so much Paul.

    #1281180
    Paul R
    Moderator

    You’re welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-1281032 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>