• rob33

    (@rob33)


    Hi – this is my second thread started for this as no-one was able to offer any ideas before…hoping anyone can kindly advise here..

    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h2 class=”widgettitle”>’,
    ‘after_title’ => ‘</h2>’,
    ));
    ?>

    This is my function php code.

    I’ve tried many variations of code so I can add a wigdets to the footer – or a footer widget sidebar.

    Can anyone please advise of how I change this so I don’t get syntax and parse errors each time.

    Thanks if you can help.

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    if ( function_exists('register_sidebar') ) {
    	register_sidebar(array(
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h2 class="widgettitle">',
    		'after_title' => '</h2>',
    	));
    }
Viewing 1 replies (of 1 total)

The topic ‘Adding Footer Widget Sidebar to this Functio php script?’ is closed to new replies.