riley6902
Forum Replies Created
-
Forum: Themes and Templates
In reply to: hacking the sidebar in default 1.5not for those who want to use other themes but here’s my hack to links.php (line 500 or so):
// USER EDIT:
// get_links_list applies- tags to category headers
// making the possiblity of using CSS to apply background images
// AND custom bullets to links impossible. Hack is to remove the outer
// list from sidebar.php in the theme, so that headers are exposed purely
// as <h2> and to rework the below.
//
// // Display the category name
// echo ' <li id="linkcat-' . $cat['link_category'] . '"><h2>' . $cat['cat_name'] . "</h2>\n\t
- \n";
- ',"
// Call get_links() with all the appropriate params
// get_links($cat['link_category'],
// '","\n",
// bool_from_yn($cat['show_images']),
// $orderby,
// bool_from_yn($cat['show_description']),
// bool_from_yn($cat['show_rating']),
// $cat['list_limit'],
// bool_from_yn($cat['show_updated']));
// // Close the last category
// echo "\n\t\n
\n";
echo ' <h2 id="linkcat-' . $cat['link_category'] . '">' . $cat['cat_name'] . "</h2>\n\t- \n";
- ',"
// Call get_links() with all the appropriate params
get_links($cat['link_category'],
'","\n",
bool_from_yn($cat['show_images']),
$orderby,
bool_from_yn($cat['show_description']),
bool_from_yn($cat['show_rating']),
$cat['list_limit'],
bool_from_yn($cat['show_updated']));
// Close the last category
echo "\n\t\n";
Forum: Fixing WordPress
In reply to: [1.5] Sidebar.php not workingdid you run the upgrade script for your database?
- tags to category headers