Results 1 to 3 of 3

Thread: Widget For Front Page ???

  1. #1
    Thread Starter
    Senior Member webcrafty's Avatar
    Join Date
    Aug 2011
    Location
    Ireland
    Posts
    114
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Question 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

  2. #2
    Thread Starter
    Senior Member webcrafty's Avatar
    Join Date
    Aug 2011
    Location
    Ireland
    Posts
    114
    Thanks
    4
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Newbie gametradepro's Avatar
    Join Date
    Nov 2011
    Location
    Ireland
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Mod to remember the selected tab on front page, ad page and blog page
    By ovidiubica in forum ClassiPress General Discussion
    Replies: 0
    Last Post: September 9th, 2011, 02:21 PM
  2. Front page only shows 1 page of ads?
    By cbcarads in forum Help Using ClassiPress
    Replies: 2
    Last Post: September 1st, 2011, 02:35 PM
  3. Replies: 1
    Last Post: June 5th, 2011, 11:18 AM