Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #842473

    Hi Enfold Team,
    how can i change the design of the portfolio sorting options above the masonry? I would like to design them as buttons via CSS.
    Also i would need to get rid of the / between the sorting options.
    Thank you
    Phil

    #842506

    Morning,

    There are a couple of pieces of css that you’ll need to use and tweak as to your liking

    
    
    /* create each none active item as a button */
    #js_sort_items a {
        background-color: #FFFFFF;
        padding: 12px 16px 10px;
        border: 1px #00aa67 solid;
    }
    
    /* create each active item as a highlighted button */
    #js_sort_items .active_sort {
        background-color: #00aa67;
        color: #ffffff!important;
        padding: 12px 16px 10px;
        text-decoration: none;
    }
    
    /* add some space between the new button */
    #js_sort_items a {
        margin-right: 10px!important;
    }
    
    /* remove the seperator */
    .text-sep {
        display: none!important;
    }
    
    /* optional centre the buttons */
    
    .avia-fullwidth-portfolio #js_sort_items {
        text-align: center;
    }

    That will produce this

    TJ

    • This reply was modified 7 years, 4 months ago by tjswarbs78.
    #842562

    Thank you for that solution, TJ!
    I had to change #js_sort_items to .av-sort-by-term to make it work, but now it works like a charm.
    Thank you again!

    #842676

    Ah good stuff :)

    Each element builder handles the sort function differently so the classes and ids for masonry / portfolio etc are not the same.
    Glad you sorted (get it?) it out

    TJ

    #843615

    Hi Phil,

    Glad that it’s all good. Thanks for using Enfold :)


    @tjswarbs78
    : Thanks for helping out :)

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change design of portfolio sorting options’ is closed to new replies.