How to modify these instructions to put the widget area inplace of %image?
Can this example be adapted to create the effect in the attached jpg?
http://forum.bytesforall.com/showthread.php?t=330 Specifically, I want to use a plugin to create an image gallery carousel in place of the %image only on my home page. The image gallery will not appear on any other page. The site will consist primarily of pages. If its important, the image gallery plugin that I planned to use is http://1plugin.com/galleries/postma I think I need to add a widget in place of % image, but I'm not really sure where to start. Your help is greatly appreciated. Thanks! |
all you need do is enter the code for a new widget area in place of the %image. Give it a shot, read the directions and try it.
|
Also here is another gallery plugin you might want to look at that is not flash and looks more like your example.
|
Juggledad: Could you just be a bit more specific as to what you mean by "the code for a new widget area?" Does code refer to php code? Is it this code?
<?PHP bfa_widget_area('name=Menu Widget Only'); ?> or is it the short code for the plugin? Neither seems to work. Am I supposed to be following the directions at http://forum.bytesforall.com/showthread.php?t=330 If so, I got lost trying to determine exactly which file I needed to put this <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(X) ) : endif; ?> code into. It seemed like I should be adding it to the index.php file, but as you already knew, that file only has a comment in it! I guess its pretty obvious that I'm not *yet* a php programmer.....Any help is appreciated. |
go to ATO->Style & edit HEADER AREA->Center column style and instead of putting in '%image' put in
HTML Code:
<?PHP bfa_widget_area('name=My_header_widget'); ?> then go to dashboard->appearances->widgets and you should see a widget area called 'My_header_widget'. You can add what ever widget you want into it. If you want it to only show on the front page, get the plugin 'widget logic' or 'dynamic widgets' and you can use them to set when it should display |
The header widget is not showing up in the dashboard > appearances > widgets. I still only see widget areas in the sidebar. I cut and paste the code from your repsonse, so I know its typed correctly. Am I putting the php code in the right place? It is ATO>Style & Edit Header Area >
Configure Header Area Your instructions said to put it in Center Column style but I don't see any place else on the Style & Edit header area page that might pertain to the header styling. I considered adding to the HTML/CSS Inserts or the new header image overlay, but the instructions in each of those section specifically say "No php code." What am I missing?:confused: |
you are right it should have said 'ATO->Style & Edit Header Area->Configure Header Area' (I've got a cold)
Once you add it, go visit the front page (so the code will run to create the area) then visit the widget area. |
I can't seem to get the widget to show up in the header area. I copied and pasted your code, reloaded the page several times, even signed completely out of WP reloaded the page and checked the widget area several times, no luck.
The site is jkstest.info When I look at the page source, I see the php code, but no div. I tried it with the %pages and without, neither worked. What am I missing? |
can't tell from the outside. If you want me to take a look, send me a PM with a admin ID/PW and I'll take a peek
|
I just want to be sure that you received the PM - wasn't sure that I sent it properly.
|
i'll take a look now
|
the 'PHP' had to be lowercase - I learn something new every day
check it out, you have a widget area. don't forget to change your password |
Thanks!!
Would that code work to put a widget anyplace on a page? (assuming that I gave another instance a unique name?) |
it works in some areas like the footer, but for the center area, you need to put it in index.php
|
Brilliant thread! Solved my question without even having to post it!
Thanks for the answers! |
All times are GMT -6. The time now is 01:08 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.