i have installled a pludgin whose named is Translator Box
, i using its short code and put it into my wordpress theme header.php.
[translation_box languages="english,russian,german,spanish,french,chinese" width="100%" height="200px" bgcolor="white" txtcolor="#000000"]
but is doesn’t work!
it also generate a widget at Enabled widget in the widgets part. is there a way when using some code in header.php that can invoke the widget? thank you.
You can define a part in your header.php to show widgets.
In your functions.php make something like this:
The first part for example will be your widget area in the sidebar and the second your widget area in your header.
Now include in your header.php file:
where your widget should be.
In your admin interface you should now have 2 areas (‘Main Sidebar’ and ‘Header Area’) you can fill with widgets.
use do_shortcode