最近搜索


没有最近搜索

How can I make header links appear as buttons?

已回答


已于 2021年7月15日 发布

I want the links at the top-right of the header to be buttons.  How would I do this?

Something like this:

 

Thanks in advance,
Victoria


1

4

4 条评论

image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Hi,

Follow the steps below.  I am doing on Default Copenhagen Theme.

 

1). Go to the header.hbs file and add the links the inside the nav-links. See how I did.

 

 

2). Add the CSS to make the links button.

@media (min-width: 768px){
.nav-wrapper a{ //May be you have different classes
border: 1px solid;
padding: 5px 15px;
border-radius: 4px;
}
}

 

3). Output.

 

 

Or you can share your HC public URL so I can share updated code with your theme's header classes.

 

Team

 

 

0


Hi Ifra,

Thank you - here is our page:  https://customers.nastel.com/hc/en-us

Thanks,
Victoria

0


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Hey Victoria , 

Add the below code snippet to your stylesheet at the bottom:

  .nav-wrapper a{
border:0;
border-bottom:1px solid;
padding:5px 0;
border-radius:0;
}

@media(min-width:768px){
.nav-wrapper a{
border:1px solid;
padding:5px 15px;
border-radius:5px;
}
}

 

Output:

Desktop

 

Tablet & Mobile

 

Thanks

0


Worked perfectly and looks awesome!  Thank you so much, Ifra :)

-Victoria

0


请先登录再写评论。

找不到所需的内容?

新建帖子