-
AuthorPosts
-
January 31, 2020 at 8:22 pm #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.
February 5, 2020 at 9:24 am #1181658Hi 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,
NikkoFebruary 5, 2020 at 1:54 pm #1181763Hi.
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..
<script async src=”//s.imgur.com/min/embed.js” charset=”utf-8″></script>
- This reply was modified 4 years, 9 months ago by mmsdev.
February 5, 2020 at 5:25 pm #1181841Hi 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,
NikkoFebruary 5, 2020 at 5:31 pm #1181846Sorry 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.
February 5, 2020 at 5:55 pm #1181863Hi mmsdev,
Please make sure that the CSS code is properly closed.
Best regards,
NikkoFebruary 5, 2020 at 6:02 pm #1181866That will be why then! Thanks so much Nikko.
February 5, 2020 at 6:41 pm #1181880Hi 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,
NikkoFebruary 5, 2020 at 6:47 pm #1181882You can close the thread, thanks Nikko
February 5, 2020 at 6:56 pm #1181886Hi mmsdev,
You’re welcome :)
Thank you for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Can an Enfold support person please quickly check my CSS’ is closed to new replies.