Hi,
I am wanting to add a custom button (Book Online) to the header. Any help would be appreciated.
Hi,
I am wanting to add a custom button (Book Online) to the header. Any help would be appreciated.
@Matt-Embra - This will need code editing, where exactly do you want this button?
I would like the button in the right of the header before the cart symbol.
@Matt-Embra - will need to edit header.liquid file to add button code and style it as per the need, are you familiar with the coding part?
Yes I can add the code to the relevant files. A rectangle button with rounded corners would be ok if that’s easier?
Hello @Matt-Embra
I would like to give you the recommendation to support you.
Let’s try adding the below code into the header.liquid file like this: https://prnt.sc/FY6a_Asy85_s
I hope the above is useful to you.
Best regards,
GemPages Support Team
@Matt-Embra - go to header.liquid file, go to line 640 and copy paste below code, you can apply css as per the need
[Book Online](https://stickeredge.com/pages/get-a-quote)
this is css for above button wich you need to add to the very end of your base.css file
.book_online_button{display: block;}
.book_online_button a{text-decoration: none; background-color: #5252f2; padding: 10px;
color: #fff; border-radius: 10px; font-size: 1.4rem; width: 100%; display: block; max-width: 100%;}
@suyash1 thank you so much for the help, works perfectly!
Hi Suyash1
I tried the above but I had an error message while pasting to line 640. Just wondering if the information has changed with any theme updates? Thank you