Adding a button to the menu

Howdy developer, here is a quick snippet to add a button to the Customizr theme menu.

Example: the green button on the demo site :

1) I added this classes to my element in the menu (See this snippet to add classes to your WordPress Menu)

free_download btn btn-mini btn-primary

2) Then I wrote this in the custom CSS option of the Customizer

.navbar .nav li.free_download.btn { 
position: relative; bottom: 10px;
padding: 2px; line-height: 19px;
vertical-align: middle; 
.navbar .nav li.free_download.btn a {
color: #FFF;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.31);
padding: 3px 13px;



25 thoughts on “Adding a button to the menu”

Comments are closed.