Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm using I18 on my site with the Mix_and_Match theme.
I want to show the language selector in an "horizontal" list og choice in the "heder" block zone. How can i configure the skinr block options for "language switcher" ?
Regards.
Comment | File | Size | Author |
---|---|---|---|
#7 | horizontal_flag_menu.zip | 2 KB | derieppe |
Comments
Comment #1
newnewuser CreditAttribution: newnewuser commentedwaiting for answer too!!
Comment #2
ajross CreditAttribution: ajross commentedYou will probably have to write the CSS to style this block yourself, if the Skinr options do not give you the layout and styling you need. I haven't really used I18 enough to know specifically what you are referring to, though. If you provide a screenshot or a link, I might be able to give you some tips.
Comment #3
derieppe CreditAttribution: derieppe commentedHi,
It's solve. I've done like that :
1° Add theses lines at the begining of bloc.tpl.php :
2° Copy bloc.tpl.php to locale.block.tpl.php
3° Modify the "print $block" line in locale.block.tpl.php
4° Add this (for example) in the CCS file.
Note : the "display: inline;" option made the li to be display horizontal.
5° Upload files on the theme directory.
6° Go to i18 parameters and keep (or not) the text in the link before or after the flag.
Hope this will help ...
Comment #4
derieppe CreditAttribution: derieppe commentedComment #5
ajross CreditAttribution: ajross commentedComment #6
atpaust CreditAttribution: atpaust commentedI am not a programer but would like to locate my Language Switcher (block) into a horizontal bar by repeating the step 1 to step 6. But I was unable to find where the two files, bloc.tpl.php and locale.block.tpl.php, were.
I did not find the two files in the sites/all/themes/mix_and_match directory, nor by using the command line, locate myfilename. I also would like to know the location of the CSS file. Can anyone tell me where those files are?
Thank you in advance
Daniel
Comment #7
derieppe CreditAttribution: derieppe commentedHi,
The bloc.tpl.php is deliver with the mix_and_macth theme.
Should be in your : sites/all/themes/mix_and_match directory.
1° Copy this file to locale.block.tpl.php before editing.
2° Edit block.tpl.php
3° Edit locale.block.tpl.php
4° Edit CCS file.
CCS code as to be added in the local.css in the sites/all/themes/mix_and_match/css
(read the mix and macth readme note)
Samples in the zip file.
best regards
Comment #8
atpaust CreditAttribution: atpaust commentedThank Philippe, the files does work as it claimed. I apprieciated your help.
Regrads
Daniel
Comment #9
ossama.selim CreditAttribution: ossama.selim commentedsorry but i can't find locale.block.tpl.php , in the locale module there is no files with this name?!
i need to make on my web site the same thing, but with "Dreamy theme" can you help me.
plz help!!
Comment #10
derieppe CreditAttribution: derieppe commentedHi,
have a look at #3.
Solution is in the 2° action : Copy bloc.tpl.php to locale.block.tpl.php
Best regards
Comment #11
cesar.brod@gmail.com CreditAttribution: cesar.brod@gmail.com commentedGuys, take a look at this one here: http://drupal.org/node/1696588 - It worked as a charm for me!
Comment #12
ossama.selim CreditAttribution: ossama.selim commentedYou can also put this piece of cod in your locale.css in modules/locale:
#block-locale-language ul li
{
display: inline;
}
Comment #13
lucasvm CreditAttribution: lucasvm commentedi was abble to do it like this:
on style.css of my theme
Comment #14
kanast CreditAttribution: kanast commentedThis is not working in Drupal 8.
I think the 'language-switcher' in D8 is 'languageswitcher' correct me if I am wrong.
It seems much more complicated in D8.
Does anyone know how to do this in D8?