Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 11d 04h 42m 14s
Claim 50% off
Awaiting an answer Helix Framework

Fixed button in the smartphone header

Asked by FIRST ANIMAZIONE ITALIA S.R.L. - Matteo Zannoni 1 year ago Last activity 1 year ago

I am using Luxevista template (based on Helix Framework) and SP Page Builder 5 and I would like to place a fixed button in the header (next to the logo) for the smartphone version. But I can't. However, working on the template and modules it should be possible. Can anyone help me?

8 replies

Paul Frankowski Senior Staff
1 year ago · edited

Ciao,

As always there are a few methods to achieve this.

Quick Idea 01:

  1. Create a new Custom Module (native) with button inside, just use bootstrap classes (screenshot) or your design concept.
  2. Then publish that module on "logo" position.
  3. Then use following Custom CSS (example):
#sp-logo .sp-module {display: none;}
@media screen and (max-width: 680px) {
#sp-logo .sp-module {display: inline-flex;}
}

Desktop & tablet - Hide button, Show on Mobile.

info_3333_2025.png

info_3334_2025.png

FIRST ANIMAZIONE ITALIA S.R.L. - Matteo Zannoni Asked this

Thanks but I'm obviously doing something wrong. If I don't insert the CSS I see the button on both desktop and mobile but under the logo section; if I insert the CSS I don't see the button on mobile either.

Paul Frankowski Senior Staff
1 year ago · edited

probably becuase, I ate "d" in below word, I had to be hungry ;)

width: 680px


1st line was/is fully OK, it should hide it. All works on my demo site. Evidence.

css25.png

info_3338_2025.png

FIRST ANIMAZIONE ITALIA S.R.L. - Matteo Zannoni Asked this

It works great. Thanks.
Now if you could also tell me how to change the color of the button I would be grateful. I can't find the right CSS.
I thought it was here: "‎/templates/luxevista/css/presets/preset1.css" in the "luxevista" template.
But apparently it is not.

FIRST ANIMAZIONE ITALIA S.R.L. - Matteo Zannoni Asked this

Or here: "‎/templates/luxevista/css/bootstrap.min.css" in the "luxevista" template.
But not even that.

Paul Frankowski Senior Staff
1 year ago · edited

I was honestly surprised by this question, I thought you were professionally involved in web development. If not, please check:

Default BT style for btn-info class used in my example

.btn-info {
  color: #000;
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.btn-info:hover {
  color:#000;
  background-color:#31d2f2;
  border-color:#25cff2
}
Paul Frankowski Senior Staff
1 year ago · edited

There is, but better use Custom CSS fort custom color or just ready class names. Less stress ;)

info_3339_2025.png

Then use custom.css file, and do not edit other template .css files.

FIRST ANIMAZIONE ITALIA S.R.L. - Matteo Zannoni Asked this

I am truly sorry to have disappointed you. On the other hand, I can do many things. For example, I am very good at recognizing unsurpassed availability and professionalism. Now everything is ok. Thank you very much.

Paul Frankowski Senior Staff

No problem, I thought you are deeper in CSS topic, and you needed only basic tip. Now I know :)


You're welcome.

FIRST ANIMAZIONE ITALIA S.R.L. - Matteo Zannoni Asked this

Can you give me one last help?
I configured the button as follows to leave room for the language flags:
.btn-success {
color: #fff;
background-color: #859163;
padding: 2px auto;
text-align: center;
width: 116px;
}
Why can't I center align the text?

Log in to reply.