• Resolved Alex Cragg

    (@epicalex)


    I have a static sidebar in my theme, which runs the fold page list plugin, but would love to implement some of the widgets now available, my theme was built pre widgets, and ive lost contact with my designer so am trying to work this all out myself. i know someone is going to tell me to build another sidebar into my theme, but i have no idea how to do that. I have access to all the php files and files on the theme…

    Ive tried editing my sidebar.php file with the relevant stuff on automattic’s site, and i can get all the widgets that i want in a sidebar, but it loses the layout of my theme. and is just unformatted lists

    just some pointers as to what to do? and im fairly new to all this, so proper in depth help is needed.

    Merci en avance

Viewing 7 replies - 1 through 7 (of 7 total)
  • If it is unformatted list – you need to have in the stylesheet all the formatting for it.
    Since the dynamic sidebar is a huge nested lists… google for styling nested lists.

    EDIT. Also, you can download 2-3-10 themes and see how it is done.

    Thread Starter Alex Cragg

    (@epicalex)

    ok, maybe getting somewhere, list is now conforming to style, https://www.epicskitours.com, but still cant get the functionality of the fold page list. any further pointers? ive tried changing wp_list_pages for fold_page_list in the main widget file where it calls the pages bit, but this creates a fatal error.
    thanks again

    Thread Starter Alex Cragg

    (@epicalex)

    right, made some more changes, using king widgets now, and have my proper page hierarchy, but styling should be as where it says navigate at the top…

    Thread Starter Alex Cragg

    (@epicalex)

    right, made some more changes, using king widgets now, and have my proper page hierarchy, but styling should be as where it says navigate at the top…

    Thread Starter Alex Cragg

    (@epicalex)

    sorted

    How did you sort it exactly?

    Thread Starter Alex Cragg

    (@epicalex)

    not entirely sure, cause ive been playing round with it so much…and not properly sure of order, but it was somethgin like this

    i know i did the following

    1. made sure that i included the following in my sidebar.php
    <?php if ( !function_exists(‘dynamic_sidebar’)
    || !dynamic_sidebar() ) : ?>
    ————
    <?php endif; ?>
    and made sur it was inside the <div></div> markers(think i put it before the <div> before.)

    2. Installed King_framework and king_pages

    3. Changed some title_li tags to title_ul tags in the king_pages.php cause it wasn’t following my theme, except in the header.

    4. King Pages also allows you to exclude certain pages from the sidebar and also to put them in several different orders, i chose id.

    5. removed ‘pages’ from the fold_page_list.php because it was appearing in between my nav bar title and the page list

    function wswwpx_fold_page_list ($args = ”, $fullunfold=false) {
    parse_str($args, $r);
    if (!isset($r[‘depth’])) $r[‘depth’] = 0;
    if (!isset($r[‘show_date’])) $r[‘show_date’] = ”;
    if (!isset($r[‘child_of’])) $r[‘child_of’] = 0;
    if (!isset($r[‘title_li’]) ) $r[‘title_li’] = __(‘ ‘); <——–here
    if (!isset($r[‘echo’]) ) $r[‘echo’] = 1;

    5. Changed the css to get rid of some bullet points that had appeared
    #navigation {float: left;list-style: none;}

    think thats about right, maybe there was another step between having an unformatted list and having a formatted list with pages stuck in the middle, but cant remember.

    thanks, hope that builds to your knowledge, and that you understand it more than i did!!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Static Sidebar and a Dynamic sidebar’ is closed to new replies.