Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1180396

    Hi.

    I have managed to get the result i wanted, but am quite confident the way i have hacked it together is not the best way.

    I have also tried to take out parts of the code i don’t think i need but then it does not work.

    I am wanting to style the portfolio spring menu and have used the info from the support forum, i have tried my best!

    Using this code:

    /* create portfolio sort items to look like a button menu */

    I am not sure i need this first bit of code but when i remove it the boarder round the buttons disappears?? I know something is wrong with the code as I don’t need the font-size: 24px as it has no effect, but if i delete it then the boarder disappears as said.

    #js_sort_items {
    font-size: 24px;
    }

    /* 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: #4ba956
    ;
    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;
    }

    /* Portfolio sort menu font size and weight*/

    .av-masonry-sort a { font-size: 12px; }

    #js_sort_items .inner_sort_button span, #js_sort_items .text-sep {
    font-size: 18px; font-weight: 500;
    }

    All the code is in the Quick.css

    Finally I would also prefer to be able to use a class to style just one of the portfolio sort menus, rather than effect the whole site.

    Doing it the way I have obviously effects the whole site, can you please advise on how to make it work by using a class, an example would be brilliant.

    #1181658

    Hi mmsdev,

    We apologize for the delayed response and your hard work reflects on the site which looks great as well. :)
    With regards to it affecting only one portfolio sort menu instead of affecting all portfolio sort menus, the only thing that you need to change is add (I got this on the ID of your color section) #choice before #js_sort_items so it would look like this #choice #js_sort_items.
    Let us know if this helps.

    Best regards,
    Nikko

    #1181763

    Hi.

    That seems to have worked, many thanks can i ask how i add a slight radius to the now new portfolio sort menu items

    Current they look like this and i would like the to match my new portfolio items..

    View post on imgur.com

    <script async src=”//s.imgur.com/min/embed.js” charset=”utf-8″></script>

    • This reply was modified 4 years, 9 months ago by mmsdev.
    #1181841

    Hi mmsdev,

    You can use this CSS code to add slight radius on portfolio sort menu items (just adjust the border-radius value, the higher the value the more rounded the menu item gets):

    #choice #js_sort_items a {
        border-radius: 8px;
    }

    Best regards,
    Nikko

    #1181846

    Sorry EDIT:

    The code worked but it made my H1 special headings all go upper case!

    #choice #js_sort_items a {
    border-radius: 8px;

    • This reply was modified 4 years, 9 months ago by mmsdev.
    #1181863

    Hi mmsdev,

    Please make sure that the CSS code is properly closed.

    Best regards,
    Nikko

    #1181866

    That will be why then! Thanks so much Nikko.

    #1181880

    Hi mmsdev,

    We’re glad that we could help :)
    Let us know if you need further assistance or if we can close this thread.

    Best regards,
    Nikko

    #1181882

    You can close the thread, thanks Nikko

    #1181886

    Hi mmsdev,

    You’re welcome :)
    Thank you for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Can an Enfold support person please quickly check my CSS’ is closed to new replies.