Home>Support>Styling Footer Custom Menu

Styling Footer Custom Menu

By Lery, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

In the Widget section, footer area, I added the Custom Menu widget. I chose to display the site navigation for the menu. This works great but displays in the footer section as a vertical list. I would like to change this to horizontal. Usually I do this with CSS using display: inline;. I can’t find the right place to add this. Any ideas?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Lery

    I did the following area:
    #secondary .widget ul, #footer-widgets .widget ul, #secondary .widget ol, #footer-widgets .widget ol

    but I have to use display:inline-flex; and it styles it without any padding. Adding padding doesn’t work because it’s doing that from some other element. At least that is what I think.

    Is there an easy way to find the elements to style over inspecting the element and trying to find it that way?

  2. 9 years, 5 months ago Daniel
    Hi, I Work Here

    Hi Lery

    Using Inspect Element is the best and fastest method you could use to ping an element.

    Do you have a public URL where we can take a look at this? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.

    Looking forward to hearing from you

  3. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  4. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  5. 9 years, 5 months ago Private Message - Daniel Hi, I Work Here

    This is a private message.

  6. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  7. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Lery

    Here is a custom CSS solution for a horizontal footer custom menu widget:

    /* Vantage Horizontal Footer Menu */
    
    #footer-widgets .widget.widget_nav_menu ul {
    text-align: center;
    }
    #footer-widgets .widget.widget_nav_menu li {
    display: inline-block;
    float: none;
    margin-right: 16px;
    }
    #footer-widgets .widget.widget_nav_menu li:before {
    content: "\0007C";
    font-family: FontAwesome;
    margin-right: 16px;
    }
    #footer-widgets .widget.widget_nav_menu li:first-of-type:before {
    content: none;
    margin-right: 0;
    }
    #footer-widgets .widget.widget_nav_menu li:last-of-type {
    margin-right: 0;
    }
    

    The custom menu widget must be the first widget added.

    It’s not possible to make the footer sticky within the current theme setup. You can however set a min-height for the content container, here is the snippet for that. Adjust as required:

    /* Main Container */
    
    #main {
    	min-height: 500px;
    }
    

    The footer itself has a small amount of padding adding, you can adjust that with:

    /* Footer Padding */
    
    #colophon {
    margin-bottom: 20px !important;
    padding: 30px !important;
    }
    
  8. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  9. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  10. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  11. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  12. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi :) Thanks for the feedback.

    Ok so, footer height first. How the Vantage footer works is it fills whatever space is left on the page. The idea with the #main min-height selector is by adding a min-height to the content area, you will never land up with a huge footer. Because, well, the only time you land up with a big footer is on a page with a tiny amount of content. Hopefully that makes sense.

    Thanks for the feedback on the footer menu. I’ve added an extra line. You should now be able to add other widgets and they should hopefully fall below the menu. Let me know how it goes once you’ve tested:

    /* Vantage Horizontal Footer Menu */
    
    #footer-widgets .widget.widget_nav_menu {
    width: 100%;
    }
    #footer-widgets .widget.widget_nav_menu ul {
    text-align: center;
    }
    #footer-widgets .widget.widget_nav_menu li {
    display: inline-block;
    float: none;
    margin-right: 16px;
    }
    #footer-widgets .widget.widget_nav_menu li:before {
    content: "007C";
    font-family: FontAwesome;
    margin-right: 16px;
    }
    #footer-widgets .widget.widget_nav_menu li:first-of-type:before {
    content: none;
    margin-right: 0;
    }
    #footer-widgets .widget.widget_nav_menu li:last-of-type {
    margin-right: 0;
    }
    

    The orange footer looks the same on the two pages you sent through. Did you make progress on that?

  13. 9 years, 5 months ago Private Message - Lery

    This is a private message.

  14. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    No problem, glad to hear you’re making progress.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More