Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #214501

    Will C
    Participant

    Is there a way to put a “-” or “•” in between the textual links in the footer? I would think there is a way via CSS, but just not sure what class that might be, if possible.

    For example: ABOUT US – PRODUCTS – BLOG – CONTACT US or ABOUT US • PRODUCTS • BLOG • CONTACT US

    Thanks!

    #214737

    Christian
    Moderator

    Hey Will,

    Please add the code below in your Appearance > Customize > Custom > CSS.

    .x-colophon.bottom .x-nav li a:after {
        content: "-";
        position: relative;
        left: 5px;
    }

    Hope that helps. 🙂

    #214948

    Will C
    Participant

    That’s great! One last thing – at the end of the row of links, whatever is last also has one, for example…

    BLOG – CONTACT US – <——— right there

    is there a snippet of code that will omit the last one?

    Thank you so much!

    #215099

    Zeshan
    Member

    Hi Will,

    Yes, you can use this code instead:

    .x-colophon.bottom .x-nav li a:after {
        content: "-";
        position: relative;
        left: 5px;
    }
    
    .x-colophon.bottom .x-nav li:last-child a:after {
        content: "";
        left: 0;
    }
    

    Hope this helps. 🙂

    Thank you.

    #215447

    Will C
    Participant

    Even better! Thank you!

    #215630

    Christian
    Moderator

    You’re welcome Will.

    #820985

    MaceInyerFace
    Participant

    I followed these same steps and it works great except that now the delimiter becomes part of link.

    Is there another bit of CSS that can be added to prevent this?

    I’m using Integrity.

    #821311

    John Ezra
    Member

    Hi there,

    Thanks for writing in! To assist you with this issue, would you mind providing us with your URL? This is so we can test and make sure our advise will work on your site. Thanks!

    #883743

    MaceInyerFace
    Participant
    This reply has been marked as private.
    #884169

    Zeshan
    Member

    Hi there,

    Thanks for the URL!

    Please try using this CSS code instead of the one provided above:

    .x-colophon.bottom .x-nav li a {
    	display: inline-block;
    	vertical-align: middle;
    }
    
    .x-colophon.bottom .x-nav li:after {
        content: " | ";
        position: relative;
        left: 5px;
        display: inline-block;
    }
    
    .x-colophon.bottom .x-nav li:last-child:after {
        content: "";
        left: 0;
    }
    

    Thank you!