Hello,
I really like this theme and we will use it for our website of the chemical engineering department of the university of Brussels (ULB). As we would like to have our website in French and English, we will add a language switcher. Unfortunately, the highest position we can place it for the moment is under the (automatically created) primary links in the left bar. This doesn't look so nice and for a moderately sized amount of primary links will fall of the first 'view' and needs scrolling to detect this feature. Plus, I think it would also look much nicer if we could place this at the top of the left bar, above the primary links. Especially as much space is lost there due to the banner, title and slogan. Do you have any idea how I could accomplish this?
Thanks,
Hulkie.
Comments
Comment #1
Anonymous (not verified) commentedHi there, good to hear that a belgium university is going to use my theme, as I myself spent 5 years in a belgium school (at St Luc in Tournai, or Dornick).
It looks like a very simple twitching, and the first way to do it that I can think about is a two step process:
how to:
1 - the custom region
You need to create a new region in two places : in your abarre.info file, and in the page.tpl.php file. In the .info file, you'll notice this:
after the last one, add a line like this:
Then, in the page.tpl.php, on line 67, you can see this:
this is where the left sidebar begins. We are going to create the region just at the beginning of the left sidebar by adding
print $sidebar_top;like this:Just to make sure it is updating in the theme cache, go to the theme page, and click on the bottom link 'save configuration'. Then, in the block page, you should now be able to assign the language block in the newly created 'Top Sidebar' region, that should be just on top of the primary links.
2 - sidebar position
If you feel like the left sidebar is too low, you can change its position by editing the style.css file. On the line #128, you should see this :
By changing the margin on the top to a negative value, you can push the sidebar to a higher position:
Feel free to change the -50 value to whatever suits you best.
Hope this helps :)
Comment #2
hulkie commentedThank you very much,
All the suggestions worked perfectly.
Hulkie.
Comment #3
Anonymous (not verified) commented