• never seen anyone accomplish this…

    I overwrote the sidebar.php in the kubrick theme to style a header image with a background image (h2 tags) and ALSO to place custom bullets for each li tag. Usually what happens is that everything, since its an li, gets the bullets, which looks silly on a header.

    By removing the outer nested list and exposing just the header tags in sidebar.php I ALMOST accomplished the right effect (https://azraeltechnologies.com/log/) except for a pesky built-in li tag that comes through from get_links_list, I think.

    Where do I find this damn tag, so that I can remove the li wrapper? Better yet, know anyone who’s accomplished to have a background header and custom bullets through pure CSS of kubrick?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter riley6902

    (@riley6902)

    not 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";

    I did a similar thing. In my CSS, I defined how I wanted li to look. At first, I had just removed the <li> tag from links.php, and added to the end of it, and got what I wanted. But now I want to control how each skin shows the links, so I put the <li> back in.

    I can show you my code if you’d like.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hacking the sidebar in default 1.5’ is closed to new replies.