Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

How to have sticky header only on mobiles

Featured Lock Resolved Issue
Hi, for some reasons I need to have sticky menu only on mobiles but I dont see any settings allowing this in the template tools

is there the possibility to have sticky menu only on mobiles?

Thank you

11 Answers

Toufiq - Staff

More than a month ago #Permalink
Hi there,

Please share your site url. Let me check, please.

-Thanks

Vicshaper

More than a month ago #Permalink
HI Toufiq

https://www.xxxxxxxxx.html

Thank you

Vicshaper

More than a month ago #Permalink
PM sent

Thank you Toufiq

Toufiq - Staff

More than a month ago #Permalink
Hi there,

Please check and let me know. I have added this css code inside the custom.css file.


@media only screen and (max-width : 320px) {
#sp-menu {
float: right;
}
#sp-header {
padding: 0 0 0 12px;
background: #21c2b6;
}
.floatingmoduleck a {
text-align: center;
margin-left: 25px;
}
}

@media only screen and (max-width : 375px) {
#sp-menu {
float: right;
}
#sp-header {
padding: 0 0 0 12px;
background: #21c2b6;
}
.floatingmoduleck a {
text-align: center;
margin-left: 25px;
}
}

@media only screen and (max-width :480px) {
#sp-menu {
float: right;
}
#sp-header {
padding: 0 0 0 12px;
background: #21c2b6;
}
.floatingmoduleck a {
text-align: center;
margin-left: 25px;
}
}



-Thanks

Vicshaper

More than a month ago #Permalink
no it is not working

did you just cancel evrything it was in my custom.css file? I hope you saved a copy

I need it back. Can you please replace it?

Thank you!

Hi, Custom.css file was blank.

location
templates/your_template/css/custom.css

-Thanks

Vicshaper

More than a month ago #Permalink
Let me know what else you changed as I can replace a backup of the site in case you didnt save the previous custom.css file

Vicshaper

More than a month ago #Permalink
Ok I restored a backup. Thank you for your help anyway I will try another solution

Have a nice day and thanks

Vicshaper

More than a month ago #Permalink
Can you please remove the name of the site please?

Toufiq - Staff

More than a month ago #Permalink
Can you please remove the name of the site please?



Done

Vicshaper

More than a month ago #Permalink
Thank you!

Toufiq - Staff

More than a month ago #Permalink
Thank you!


Hi, You are most welcome & Thanks


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 122
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 115
Toufiq

Toufiq

Total Accepted Answers: 62
Pavel

Pavel

Total Accepted Answers: 4
Mohammed Ahmed

Mohammed Ahmed

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us