[Resolved] PHP Snippet Footer Width, Copyright Width – Floats to Flexbox

Home Forums Support [Resolved] PHP Snippet Footer Width, Copyright Width – Floats to Flexbox

Home Forums Support PHP Snippet Footer Width, Copyright Width – Floats to Flexbox

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #1580688
    Rylan Urban

    Hi Leo – we’re almost there. Here’s what I’m trying to do.

    – Disable the copyright area
    – Vertical center the social icon and menu widgets within the space
    – Left align the social icon, leave the menu center

    #1580758
    Elvin
    Staff
    Customer Support

    Hi,

    Try this:

    For social icons and the menu:

    Try this –

    
    /* Hides the copyright bar from display */
    .copyright-bar {
        display: none;
    } 
    
    /* Remove Footer Bar socmed margin-bottom */
    .footer-bar .lsi-social-icons li { margin: 0 8px 0px 0 !important; }
    
    /* Styling on desktop and tablets */
    @media (min-width:769px){
    .inside-site-info .footer-bar {
        display: flex;
        position: relative;
        width: 100%;
        margin: 0px;
    }
    
    .footer-bar aside#nav_menu-2 {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        justify-content: center;
    }
    }
    
    /* Styling on mobile */
    @media (max-width:768px){
    .footer-bar{ display:flex; flex-wrap:wrap; justify-content: center; }
    .footer-bar aside#lsi_widget-2 {
        width: 100%;
        display: block;
    }
        
    .footer-bar aside#nav_menu-2 {
        width: 100%;
        display: block;
    }
        
    .footer-bar ul.lsi-social-icons.icon-set-lsi_widget-2 {
        width: fit-content;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    }
    #1580794
    Rylan Urban

    Super close! Just not sure how to adjust the left margin. It’s going right to the edge of the page.

    #1580798
    Elvin
    Staff
    Customer Support

    Super close! Just not sure how to adjust the left margin. It’s going right to the edge of the page.

    You can add this within the @media (min-width:769px){ ... }:

    .footer-bar aside#lsi_widget-2 {
        margin-left: 20px;
    }
    #1582110
    Rylan Urban

    Thanks, now live on the main site!

    #1582129
    Rylan Urban

    Sorry.. Hopefully this is the last thing. The links don’t work properly when you hover the social icons. You have the put the mouse on the corner of the icon or in the exact center… Note, site is here.

    #1582193
    Elvin
    Staff
    Customer Support

    Modify this:

    .footer-bar aside#lsi_widget-2 {
        margin-left: 20px;
    }

    Into this:

    .footer-bar aside#lsi_widget-2 {
        margin-left: 20px;
        z-index: 100;   
    }

    Let us know how it goes.

    #1582303
    Rylan Urban

    Case closed! And by the way, I changed 20px to 3%. Thanks!

    #1582312
    Elvin
    Staff
    Customer Support

    Case closed! And by the way, I changed 20px to 3%. Thanks!

    Nice one. No problem. 🙂

Viewing 9 posts - 16 through 24 (of 24 total)
  • You must be logged in to reply to this topic.