Show different footer per language
I made this website: http://www.plantpack.net/ 99% multiligual with WPML, I managed to get even the matching sidebars per language.
Now it would be nice if I could do the same for the Footer, is it possible to match a footer to a language just like I did with the sidebars?. For the sidebars I used this plugin: http://wordpress.org/plugins/widget-logic/ in the widget I use the shortcode: ICL_LANGUAGE_CODE == 'en' to match a sidebar to a Language, this works great :) Hope this is also possible for a Footer :) Thx! |
Did you know you can add a new widget area to the footer?
|
No, how do I do this?
//edit found it: <?php bfa_widget_area('name=My_footer_widgets&cells=3'); ?> :) testing now :) |
Got two problems:
New Footer Widget 1 is aligining left on 2 lines : http://www.plantpack.net/ New Footer Widget 2 is aligning center on 3 lines : http://www.plantpack.net/nl/ New Footer Widget 3 is aligning right on 2 lines : http://www.plantpack.net/zh-hans/ I want ONE (1) line and aligned CENTER for all three widgets, is that possible I can see I have to include "align" and "width" in : <?php bfa_widget_area('name=My_footer_widgets&cells=3'); ?> but I am not sure how, can you help me with this piece of code? |
I tried this:
<?php bfa_widget_area('name=My_footer_widgets&cells=3&al ign=2&align_1=2&align_2=2&align_3=2&width_1=1000&w idth_2=1000&width_3=1000'); ?> The width is working now, but now the widget 2 and 3 are far to the right, how can I solve this? //Edit: I tried almost every possebility, nothing works I keep getting three widget next to eachother but the should be below eachother, and there will be several languages more so I will need 7-8 widgets in the footer |
You could add just a one (1) cell widget area and put your three widgets in that widget area and use widget-logic to control which to display
HTML Code:
<?php bfa_widget_area('name=My_footer_widget_area'); ?> |
Aaarch now he is not showing anyting at all, I think three widget-logic in one widget is not possible :(
Is there an other way? If this takes extra time please let me know ... |
send me a PM with an admin ID/pw and I'll take a look at what you did
|
Done! Thx! :)
|
Take a look now. I created a footer widget with just 1 cell and put all three test widgets in it. The widget logic only alows one to show. They take up the full width so all are centered.
|
All times are GMT -6. The time now is 07:41 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.