Forums

[resolved] fold page list styling problem (3 posts)

  1. juliageek
    Member
    Posted 1 year ago #

    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?

  2. juliageek
    Member
    Posted 1 year ago #

    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.)

  3. Eiland
    Member
    Posted 6 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic