Widgetise Footer Area

This topic contains 3 replies, has 2 voices, and was last updated by  Guust 9 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #61419

    netbrasil
    Expired Member
    Post count: 133

    Hi,

    I dont see any widget available on the footer area and I’m using the modern theme. I tried to add/register a new sidebar widget, but wont get it to work. I know the codes are ok.It maybe somehow has to do with the theme?

    Here are the codes:

    Register Footer Widgets:

    
    
    /**
     * Register our sidebars and widgetized areas.
     *
     */
    function footer_wdigets_a() {
    
    	register_sidebar( array(
    		'name'          => 'Footer A',
    		'id'            => '',
    		'before_widget' => '<div class="jpl-footer-a">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h2>',
    		'after_title'   => '</h2>',
    	) );
    
    }
    add_action( 'widgets_init', 'footer_wdigets_a' );
    
    function footer_wdigets_b() {
    
    	register_sidebar( array(
    		'name'          => 'Footer B',
    		'id'            => '',
    		'before_widget' => '<div class="jpl-footer-b">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h2>',
    		'after_title'   => '</h2>',
    	) );
    
    }
    add_action( 'widgets_init', 'footer_wdigets_b' );
    
    function footer_wdigets_c() {
    
    	register_sidebar( array(
    		'name'          => 'Footer C',
    		'id'            => '',
    		'before_widget' => '<div class="jpl-footer-c">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h2>',
    		'after_title'   => '</h2>',
    	) );
    
    }
    add_action( 'widgets_init', 'footer_wdigets_c' );

    then this is the footer.php

    `<div class=”jpl-footer”>
    <?php if ( is_active_sidebar( ‘Footer A’ ) ) : ?>
    <div id=”primary-sidebar” class=”primary-sidebar widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘Footer A’ ); ?>
    </div>
    <?php endif; ?>

    <?php if ( is_active_sidebar( ‘Footer B’ ) ) : ?>
    <div id=”primary-sidebar” class=”primary-sidebar widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘Footer B’ ); ?>
    </div>
    <?php endif; ?>

    <?php if ( is_active_sidebar( ‘Footer C’ ) ) : ?>
    <div id=”primary-sidebar” class=”primary-sidebar widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘Footer C’ ); ?>
    </div>
    <?php endif; ?>

    <div class=”cf”></div>
    </div>

    #61434

    Guust
    Moderator
    Post count: 29970

    If you are using the Modern Theme with the Geodirectory Framework, go to GDF options > Footer Styling Options > Enable footer widget areas
    Selecting widget areas there will add them to WP > Appearance > widgets

    #61636

    netbrasil
    Expired Member
    Post count: 133

    I overlooked that one! nice 🙂 thanks!

    #61639

    Guust
    Moderator
    Post count: 29970

    Too easy 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount