Basil Template: This website template’s special scrolling effects and full-bleed banners give your customers a stunning visual experience.
In this post
Notes
- Adding Custom CSS to Home > Design > Custom CSS
- With One page. Add code to Page Settings > Advanced > Header (If you use Personal Plan > Edit Page > Add Code Block > Add Code)
- Adding !important to after, if CSS doesn’t work! for example: font-size: 20px !important;
- Send me a message if you have any questions/the code doesn’t work (free).
- You can send a donation if this is helpful for you 😉
Header
Site Title Color
Entire Site
/* Desktop */ .Header-branding { color: #ff0000 !important; } /* Mobile */ a.Mobile-bar-branding { color: #ff0000 !important; }
One Page
<style> /* Desktop */ .Header-branding { color: #ff0000 !important; } /* Mobile */ a.Mobile-bar-branding { color: #ff0000 !important; } </style>
Disable Site Title Link
a.Mobile-bar-branding { pointer-events: none; } .Header-branding { pointer-events: none; }
Remove Site Title
Entire Site
.Header-branding { visibility: hidden; } a.Mobile-bar-branding { visibility: hidden; }
One Page
<style> .Header-branding { visibility: hidden; } a.Mobile-bar-branding { visibility: hidden; } </style>
Navigation Hover Color
.Header-nav-item:hover { color: #ff0000 !important; }
Strike Navigation Hover Item
.Header-nav-item:hover { text-decoration: line-through; }
Hide Navigation Item
First Item
.Header-nav-item:nth-child(1) { display: none; }
Second Item
.Header-nav-item:nth-child(1) { display: none; }
Do similar!
Turn last Navigation item to Button
.Header-nav-item:last-child { background: #fff; color: #000 !important; padding: 5px 10px !important; border-radius: 50px; font-size: 15px; }
Remove Navigation
Entire Site
.Header-nav { display: none; }
One Page
<style> .Header-nav { display: none; } </style>
Logo (Right) – Navigation (Left)
.Header-inner.Header-inner--bottom { flex-direction: row-reverse; justify-content: space-between; } [data-nc-container="bottom-center"] { display: block !important; flex-grow: 1 !important; } [data-nc-base="header"] [data-nc-container="bottom-right"] { text-align: left; justify-content: flex-start; } [data-nc-base="header"] [data-nc-container="bottom-left"] { text-align: right; justify-content: flex-end; }
Remove Hamburger Icon
button.Mobile-bar-menu { display: none; }
Replace Hamburger Icon with Custom Image/Icon
button.Mobile-bar-menu { visibility: hidden; } button.Mobile-bar-menu:after { visibility: visible; content: ""; background-image: url(https://image.flaticon.com/icons/svg/1279/1279537.svg); background-repeat: no-repeat; background-size: contain; background-position: center center; width: 30px; height: 30px; display: block; }
Replace Hamburger Icon with word “Menu”
button.Mobile-bar-menu { visibility: hidden; } button.Mobile-bar-menu:after { visibility: visible; content: "Menu"; font-family: proxima-nova; color: #000; font-size: 20px; }
Add word “Menu” beside Hamburger Icon
button.Mobile-bar-menu:before { content: "Menu"; font-size: 20px; color: #000; position: absolute; right: 50px; top: 25px; }
Navigation Overlay Background Color
.Mobile-overlay-menu { background: #f1f2f3; } .Mobile-overlay { background: #f1f2f3 !important; } button.Mobile-overlay-close { background: #f1f2f3 !important; }
Navigation Overlay Width
.Mobile-overlay { width: 70%; }
Change Hamburger Icon Color
button.Mobile-bar-menu svg { stroke: #ff0000; }
Change “X” close icon color
.Mobile-overlay-close svg { stroke: #000; }
Align Center Navigation Overlay Items
.Mobile-overlay-nav-item { text-align: center; }
Footer
Footer Background Color
Entire Site
footer.Footer { background: #000; }
One Page
<style> footer.Footer { background: #000; } </style>
Footer Background Image
Entire Site
footer.Footer { background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg); background-size: cover; background-position: center center; background-repeat: no-repeat; }
One Page
<style> footer.Footer { background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg); background-size: cover; background-position: center center; background-repeat: no-repeat; } </style>
Remove Footer
Entire Site
footer.Footer { display: none !important; }
One Page
<style> footer.Footer { display: none !important; } </style>
Other
Page Background Color
Entire Site
.Main { background: #000; }
One Page
<style> .Main { background: #000; } </style>
Page Background Image
Entire Site
.Main { background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg); background-repeat: no-repeat; background-size: cover; background-position: center center; }
One Page
<style> .Main { background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg); background-repeat: no-repeat; background-size: cover; background-position: center center; } </style>
Blog
Remove Post Featured Image
.BlogList-item-image { display: none !important; }
Remove Post Date
time.Blog-meta-item.Blog-meta-item--date { display: none; }
Remove Post Excerpt
.BlogList-item-excerpt { display: none !important; }
Remove Post Title
a.BlogList-item-title { display: none !important; }
Remove Separator under Posts
.BlogList-item:before { display: none !important; }
Increase Post Date Font Size
time.Blog-meta-item.Blog-meta-item--date { font-size: 20px; }
Remove Social Share Icon
.BlogItem-share { display: none; }
Remove Previous/Next
.BlogItem-pagination-link-label { display: none !important; }
Remove white spacing between Post Detail Page & Header
.view-item.collection-type-blog .Main-content { padding-top: 10px; }
Featured Image: Squarespace.com