Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 13d 01h 30m 49s
Claim 50% off
Solved Templates Locked

Language flags

Asked by Monika 1 year ago Last activity 1 year ago

I have a problem with language flags. How can I manage them? I couldn't find any place I can manage them at the template styles.
They apear at my site in the middle, between site logo and menu. I would like to have them at right side of my website, after menu. And also I'd like to switch off arrows near them, and the grey background apearing under active language flag.

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
1 year ago · edited

BTW

To correct "Czas do Konferencji" also on mobile view use also that line

@media screen and (max-width: 680px) {
#countdown-timer > .sppb-col-xs-6 {width: 50%; text-shadow: 0px 1px 2px #035427;}
}

Then there will be two columns and two rows, 2x2 grid. And correct visiblity (contrast) a little bit.

Yes, that one you can use inside Page Settings > Page CSS > Custom CSS

11 more replies

Ofi Khan Staff

Hello Monika Sz,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing. Rest assured, I will look into this issue for you and work to resolve it as quickly as possible.

Apology for the inconvenience. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup before sharing.

Best regards

Monika Asked this

Please check.

Ofi Khan Staff

I have used this CSS to
Template Options -> Custom Code -> Custom CSS

.sp-megamenu-parent > li > a{
  padding: 0px 7px !important;
}
#sp-user1{
  display: flex;
  justify-content: center;
  align-items: center;
}
div.mod-languages ul li.lang-active{
  background-color: transparent;
}
.sp-module ul > li{
  border: none;
}

Please check the language switcher module now.

Paul Frankowski Senior Staff

Monika,

Sorry, but I would do that in different way ;p

  1. In Layout Manager, I would remove user1 position from header
  2. In "menu" module position I would publish "language" module
  3. I would also remove ">>" after flag icons by using

#sp-header .sp-module ul > li > a::after {display: none;}

Yes, also that line is useful (thanks @Ofi)

div.mod-languages ul li.lang-active{background-color: transparent;}

Why this way? Becuase if language module will be on the same position as menu, it takes less space, and is more flexible on smaller laptop screens.

Monika Asked this

Thank you very much Ofi & Paul.

  1. What is the procedure of removing user1 position from header in Layout Manager? I cant see "remove" at settings options. I'm a little bit affraid to press red "Remove" button at Header panel (because I don't want to remove all Header...)
    2.When I've published "language" module in "menu" position I've got flags before menu once again (at the left site of menu) but I wanted to have them at right side of menu ;(
Paul Frankowski Senior Staff

Should I set it on your site? Or you'll keep @Ofi CSS method? Decide.

Monika Asked this

Ofi method at my computer looks not good. Using his method menu at my laptop screen goes in two lines. So I'd like to use your method.
And what is the procedure to remove user1 position from header?

Ofi Khan Staff

I have changed the layout, removed user1 position. Also, I have added this Custom CSS to make it look better. Please check and let me know if you need further help. Thanks Paul for the assist.

#sp-menu .sp-column{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row-reverse;
}
Paul Frankowski Senior Staff

@Ofi, indeed now looks nice :)

Monika Asked this

Thank you Ofi and Paul for your comprehensive help.
Now my menu looks very nice.
I have just only one request, can I have at mobile view (and only there) the flags before icon of menu? Now flags are after the icon. At computer view it looks very good, but at mobile it looks not so functional.

Paul Frankowski Senior Staff

If we talk about Smartphones (Vertical View) try that

@media screen and (max-width: 680px) {
#sp-menu .sp-column  {display: grid;grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(1, 1fr);}
}
This question is locked, so it takes no new replies. Have a similar problem? Ask a new question.