Cutline Theme Support Forums » Cutline Theme Support Forums

Sidebar Code to Display Pages Can't be Found - Cutline v1.2 (3-column-right)

(3 posts)
  • Started 3 years ago by CaliforniaJerry
  • Latest reply from CaliforniaJerry
  • This topic is not resolved

  1. CaliforniaJerry
    Member

    My blog is displaying Pages in the sidebar and I need to modify someone else's site to do the same. Problem is I can't find the code that is displaying the page links.

    I found your post, Chris, about displaying Pages in the header navigation and was able to get that working:

    Cutline Q&A Part 1

    But I want pages to be displayed in a column in the sidebar, not the header navigation.

    I've searched the Cutline source code for keywords such as <h2 class="widgettitle">Pages</h2> but that string is not found anywhere in the code. (It is found in the "View Source" of the rendered page.)

    I've also searched for the keyword, wp_list_pages. But this is not found either.

    The word "Pages" is being displayed and the page links are below that, so it's a bit confusing why I can't find the code for it.

    Another confusing part of this puzzle is that in sidebar.php, which is where the code for Pages should be, I see the code for "Recent Posts", but those are NOT being displayed in the rendered page.

    <li class="widget">
        <h2>Recent Entries</h2>
    Posted 3 years ago #
  2. CaliforniaJerry
    Member

    Turns out, in "sidebar.php" when I take out the test for widgets, the sidebar code is displayed:

    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) : ?>
    <?php endif; ?>


    That implies that my widgets aren't working and that something else gets displayed instead. I still don't know where that code is that's displaying the "Pages" links in that sidebar.

    Posted 3 years ago #
  3. CaliforniaJerry
    Member

    The "Pages" widget was turned on in the widgets area,

    Wordpress Dashboard -> Presentation -> Widgets

    So, apparently you can either have static content from the sidebar files, OR widgets, but not both.

    The work around for that is to take out that IF statement or move the ENDIF statement so it doesn't exclude the static items.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.