Cutline Theme Support Forums » Cutline Theme Support Forums

Pages: spacing and ordering

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

Tags:


  1. How do I change the order of the pages such as moving "archives" to the end, etc.?

    And how can I get equal spacing between each of the page titles?

    Thanks,

    Mark

    Posted 4 years ago #
  2. CaliforniaJerry
    Member

    It sounds like you are talking about the Navigation Header Links rather than the Sidebar List.

    First, save a backup copy of any files you are about to modify.

    Then, in 'header.php' find this code:

    <ul id="nav">
    <li><a <?php if (is_home()) echo('class="current" '); ?>href="<?php bloginfo('url'); ?>">front page</a></li>
    .

    Just reorder those sections of code, like this:

    <li><a <?php if (is_page('about-me')) echo('class="current" '); ?>href="<?php bloginfo('url'); ?>/about-me/">about me</a></li>
    <li><a <?php if (is_page('another-page-slug')) echo('class="current" '); ?>href="<?php bloginfo('url'); ?>/another-page-slug/">another page</a></li>
    <li><a <?php if (is_archive() || is_page('archives')) echo('class="current" '); ?>href="<?php bloginfo('url'); ?>/archives/">archives</a></li>

    Note that Title Case for those page names is achieved in the Stylesheet.

    .
    .

    Header Navigation Spacing
    --------------------------
    Use Firefox's Developer Toolbar plugin to CSS -> View Style Information of those elements. Then locate that style definition in 'style.css'.

    ul#nav

    Then note the style syntax for 'padding' it's as follows:

    padding: top right bottom left;

    For example:

    ul#nav li { padding: 0.85em 1.5em 0.7em 0.0em; ... }

    .

    You will most likely want to modify the second parameter, right, spacing.

    .
    .

    Sidebar Page Ordering
    ----------------------
    To order your sidebar pages as listed in the sidebar, edit each page in your dashboard and change the page order there. You might want to use numbers like 100, 105, 110, etc. to more easily insert new pages later on into the order without having to change every one.

    Note: You cannot use the Pages Widget in Wordpress and the sidebar.php static code easily, but it can be done.

    See this post:
    http://cutline.tubetorial.com/forums/topic/sidebar-code-to-display-pages-cant-be-found-cutline-v13-3-column-right

    .
    .

    Browser Compatibility
    ----------------------
    Take a look at this free tool:
    http://browsershots.org/

    (note: I tried to format this post nicely, but the forum script mangled it.)

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.