Widget For Front Page ???
Hi Guys,
Im using 3.1.4 Cp, I want to ad a widget to my front page. I will use it for announcements and maybe some seasonal greetings for my users. I have added this code to the theme-sidebars.php
Code:
register_sidebar(array(
'name' => __('Index Sidebar','appthemes'),
'id' => 'sidebar_index',
'description' => __('This is your ClassiPress Index Page sidebar.','appthemes'),
'before_widget' => '<div class="shadowblock_out" id="%2$s"><div class="shadowblock">',
'after_widget' => '</div><!-- /shadowblock --></div><!-- /shadowblock_out -->',
'before_title' => '<h2 class="dotted">',
'after_title' => '</h2>',
));
I have the widget showing on the admin panel so that part is ok. I will also change the css from shadowblock to something else when I get the widget in place.
problem 1
I have used this code to call widget in other
WP installs but I think CP calls widgets in a different manner.
Code:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Widget-Name-Here') ) : ?>
Could someone give me an example of how to call the widget, It will be placed just under the search bar and on top of the slider. I want it on the index page and not in the header as to not affect the styling of the header.
Any help would be appreciated.
Just one other thing,
I'm using a child theme, Can I just simply copy the whole CP 3.1.4 files to my child folder, I think I have seen on the forum that even if I do this the CP 3.1.4 files (eg, include files) will still over ride the child files. Just looking for easy option for upgrading as I have changed some of the 3.1.4 files as well as the child theme files.
Thanks