• grebog

    (@grebog)


    I am blue snail theme and they didn’t have it widgetized yet, but I have been able to get it mostly as it was except one thing. I can not seem to figure out what variable the title of the widget is. The reason I want to know is so I can keep the base stylesheet the same and only have changed some php code.

    <li id="widgettitle">
    Where the “widgettitle” is, is where I will likely need to concatenate the variable for the widget title.

    Unfortunately, I have not yet found it digging through other posts or documentation. If I have just overlooked it, sorry. Thank you for the assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m also looking for the widget title variable so that i can give my widgets an “id”.
    The variable i’ve seen in other pages/themes that refer to the title is: %1$s

    However when i place it into my “functions.php”:

    <?php
    if ( function_exists(‘register_sidebars’) )
    register_sidebars(2, array(
    ‘before_widget’ => ‘<div class=”menuHead”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<ul id=”%1$s”>

    • <h2>’,
      ‘after_title’ => ‘</h2>
      ‘,
      ));
      ?>

    It doesn’t work..:(. My PHP experience is extremely limited so any help would be appreciated.

    Have you guys gotten any farther? I am trying to do the same.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget Title Variable?’ is closed to new replies.