[SOLVED] Slideshow doesn't show in header area
Hello everybody, i have a little problem.
I'm tryng to show into my homepage(blog) a slideshow(meteor slideshow). This is working when i insert it in a page with the shortcode, and as a widget. But he don't show up when i put the correct code into the header area: I tried to put it after the logo section and after the %image(that i don't actually use)...this is the code into the Configure Header Area, like i saw it in a few posts in this forum. %logo <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?> %page-right Not necessarly i've to put it in the logo area, even the %image can be fine, but i need this slideshow to works. The link to my site is HERE, i've coloured in black the logo area so you can see when i want to put the slideshow. P.s: i'm using the latest version of WP and Atahualpa. |
you can not use php in the header area due to a wordpress requirement except for the new widget area code (because of the way the theme parses it.
So remove the code '<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>' and put in the new widget area code, add a text widget to the new widget area and add your code to the text widget. |
OK, thx for the reply,you are very gentle
My next question now is...how can i put the widget area into the header section? 'Cause i've posted this code after the %logo : <?php bfa_widget_area('name=My new widget area'); ?> But nothing is happening. How can i create a text widget to insert my php function for slideshow? Btw, congrats for this theme, it is very professional and useful. |
Putting the code as you have it should have created a new widget area called My new widget area in Appearance>Widgets. You can make that widget area a different name by using different words in that part of the code.
Now you can put a php aware widget such as the Linkable Title Html and Php widget and put the php code for the Meteor slideshow in it. |
Ok thx i got it!!! problem solved.
Thanks for the quick answer!problem solved.:) |
All times are GMT -6. The time now is 04:01 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.