WordPress.org

Ready to get started?Download WordPress

Forums

Side Navigation & Widget issues (4 posts)

  1. Scott Story
    Member
    Posted 5 years ago #

    Hello--I'm having issues with my page links on my right-hand sidebar on my site http://www.johnnysaturn.com.

    I'm using the most up-to-date version of WordPress, and the three column Comicpress theme.

    My problem is this: When there are no widgets used in the right-hand sidebar, there are some stock widgets that are in that place, and these disappear once you start modifying it with widgets of your own choosing.

    The Pages Widget, which in stock form expanded or collapsed as you navigated through the site, showed the parent pages all the time, and child pages as you navigated through specific parts of the site.

    In any case, when you put your own widgets in, and put in the Page Widget, the page links in the page widget no longer expands or collapses, and it shows only the parent pages, not the child pages. This wouldn't be a huge issue, but I've got seven parent pages and almost 30 child and child-child pages! In the current configuration, these child pages and child-child pages are mostly landlocked, cut off from navigation!

    I tried to widget my way out of this, and I tried wp-pagenavi, flexi-pages-widget, list-pages-plus, and my-page-order. They did not restore expanding/collapsing page structure functionality to me, although they would rearrange the pages. I've taken these plugins off the site.

    I also tried sticking snippets of language from the right sidebar doc in my theme folder, but that was also not helpful. Then, I started looking for some sort of code snippet on the web, something I could comprehend and implement, that I could put in a text widget and put in place. That thoroughly confused me.

    What should I do? I have to restore functionality to my site's navigation!

  2. moshu
    Member
    Posted 5 years ago #

    Usually, the sidebar.php template files have their own code to display whatever elements the designer decided to put there.

    If all these things are INSIDE of the "dynamic sidebar" code - using just ONE single widget... everything will disappear. That's how it works: widgets override anything handcoded.

    The only way you work around this: move outside of the dynamic sidebar conditional statement all the stuff you want to be seen regardless of the widgets. Or don't use widgets.

  3. Scott Story
    Member
    Posted 5 years ago #

    Thanks, Moshu, I'll give that a go.

  4. Scott Story
    Member
    Posted 5 years ago #

    Well, that seemed to work. I put this code

  5. <h2>Menu</h2>

      <?php wp_list_pages('title_li=' ); ?>
  6. up above the "div" tags in the right sidebar page, and my menu shows up fine.

    Yet, I wonder, is this doing anything that will break the system or make it come up funky on some browsers?

    Also, I tried to take the sname snippet, put it into a text widget, and put it up, but it doesn't work. Widgets override, right, so why wouldn't it work? Sorry for the noob questions.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags