Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • technonow
    Member

    @technonow

    I did say I was thick!

    I changed the original functions.php and added two new array under the existing one. One named Sidebar1 that I’d created and one named sidebar2 … when I swopped to child theme my site went blank.

    I then created a blank functions.php but just copied the following into it.

    array(

    ‘name’ => ‘Sidebar1’,

    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,

    ‘after_widget’ => ‘</div>’,

    ‘before_title’ => ‘<h3 class=”widgettitle”>’,

    ‘after_title’ => ‘</h3>’

    )

    array(

    ‘name’ => ‘Sidebar2’,

    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,

    ‘after_widget’ => ‘</div>’,

    ‘before_title’ => ‘<h3 class=”widgettitle”>’,

    ‘after_title’ => ‘</h3>’

    )

    That didn’t work, but at least the screen didn’t go blank! I know a little knowledge is dangerous, but I’m hoping I can learn by trial and error, so what has this thicko got completely wrong?


    technonow
    Member

    @technonow

    “make sure your functions have unique names”

    That’s the bit I don’t understand.

    I want to create an extra sidebar. The BuddyPress Default functions.php has

    register_sidebars( 1,

    array(

    ‘name’ => ‘Sidebar’,

    ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,

    ‘after_widget’ => ‘</div>’,

    ‘before_title’ => ‘<h3 class=”widgettitle”>’,

    ‘after_title’ => ‘</h3>’

    )

    );

    In my child theme I want to change the 1 to 2.

    I thought I’d still have to call the file in my child theme functions.php

    In my child Theme … Is it the functions.php file I have to rename, or is it that I need to change the name “Sidebar” or “Sidebars”

    Sorry for being so thick. I’m learning, but still beginning!

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar