• Resolved juliageek

    (@juliageek)


    Hi

    I am using fold page list with the following code:

    <?php
    $g_page_id = $wp_query->get_queried_object_id();
    $ancestorIDs = _wswwpx_page_get_ancestor_ids($g_page_id);
    $grandParent = $ancestorIDs[1];
    $my_pages = wswwpx_fold_page_list("title_li=&sort_column=menu_order&child_of=".$grandParent);
    ?>

    It outputs the right stuff in the right place. The problem I am having is styling the li class="page_item current_page_item" which is the class given to the active page item. (as opposed to “page_item” which is applied to everything else.

    If I put in my stylesheet

    li.page_item current_page_item a { color: #00A5EA; }
    li.page_item a {color: #FFFFFF; }

    The page_item styling always overrides the current_page_item and everything is #FFFFFF.

    This goes against all my css logic. Any ideas/workarounds?

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

    (@juliageek)

    Ok, so here I am answering my own question again! Hope it helps someone else:

    I edited the foldpage plugin, where it applies the class
    ( current_page_item)
    which outputs as page_item current_page_item
    to
    (_current_page_item)
    which outputs as page_item_current_page_item which seems to make it a completely distinct style and which is therefore stylable all the way down the hierarchy.

    (I forgot to mention in the above that the problem starts kicking in when you get to the ul li ul li a level.)

    thanks, that put on me on the right lead!! (do you think, it is an error?)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fold page list styling problem’ is closed to new replies.