ThemeShaper Forums » Thematic

Child Theme Woes (functions & widgets)

(3 posts)
  • Started 10 years ago by miscella
  • Latest reply from miscella
  • This topic is resolved
  1. miscella

    Two hopefully quick questions.

    1. How do I remove the list styling around the #index-top widget area? I know how to remove the bullets via CSS, but I would like to remove the list mark up entirely, as I am using this area to display a rotating image and the list mark up makes no sense. Right now, the code displayed looks like this:

    <div id="index-top" class="aside">
    <ul class="xoxo">
    <li id="execphp-443886984" class="widgetcontainer widget_execphp">
    <img src="URL/img/image.jpg" width="50px" height="70px" alt="Description here" />
    </div><!-- #index-top .aside -->

    I would like to delete the UL and LI entirely and, if necessary, replace the LI with a <DIV>.

    2. I wanted more control over my navigation, so looked to replace the wp_page_menu with wp_list_pages. This is what I've done in my function file, but is there a better way to achieve this?

    // Unhook default Thematic functions
    function unhook_thematic_functions() {
        // Don't forget the position number if the original function has one
    // My new header
    function child_thematic_access() { ?>
        	<div id="access">
                <ul id="nav"><?php wp_list_pages('title_li=&sort_column=menu_order&depth=1') ?>
            </div><!-- #access -->
    <?php }

    Thanks in advance for any & all advice.

    Cheers / Angelique

    Posted 10 years ago #
  2. Hi Angelique,

    I'm sorry .. currently there are to possible ways to change this behavior. The first one requires a direct change of the original sidebar-index-top.php. For the second one you would create an action with a conditional sidebar and add this one to the action hook thematic_navigation_above with priority.

    Let me think about how to integrate an easier way.

    And .. no .. at the moment I don't know a better way than replacing wp_page_menu with wp_list_pages. Unfortunately wp_page_menu is missing all that nice features while calling wp_list_pages.



    Posted 10 years ago #
  3. miscella

    Thanks for the response, Chris. For the time being, I went in and edited widgets.php in the parent theme file to swap out the LI for DIVs. It's possible the design I'm going for is more appropriate for an interpretation of Thematic rather than a child theme, but I'd not used child themes before and wanted to give it a whirl. I'd had no previous experience with actions and hooks -- hence part two of my question. I had found a way to do it, but wanted to make sure it wasn't a completely backwards way of achieving that result. :)

    Cheers / Angelique

    Posted 10 years ago #

RSS feed for this topic


You must log in to post.