Desk Mess Mirrored 1.4.2

Posted by Edward Caissie on October 17, 2009 in News, WordPress |

I uploaded the latest version of Desk Mess Mirrored to WordPress.org a little while ago. There were a few minor CSS items that needed to be addressed and a little thing in the ‘comments.php’ template that was bothering me. One of the many great things about designing and publishing your own themes is the opportunities to tweak them as you see fit.

Although I do my best to take into account the close to 12,000 downloads of the theme to date, I rarely make any really dramatic changes unless there are very good reasons, such as implementing threaded comments, and to a lesser degree sticky posts.

Following is the latest changelog:

Changelog (as of Oct 17, 2009)

-- Version 1.4.2
	- CSS (new): added 'dl.gallery-item {margin: 0;}' as pointed out by Andy Fragen of http://troop262ps.org/
	- CSS (edit): #comments -> 'padding: 24px 0 0 40px;' to 'padding: 30px 0 0 30px;'
	- CSS (new): added '.page ol', '.page ul', and '.page li' elements
	- comments.php (line 40) -> changed 'One Comment' to '1 Comment'

More often than not you will now find a detailed listing of changes between versions on the Desk Mess Mirrored theme as most modifications are very minor. Please feel free to contact us, or leave a comment, if you have any specific questions or concerns with a particular change and how it will affect your WordPress blog.

(NB: Desk Mess Mirrored version 1.4.2 is live at WordPress.org as of Oct 19, 2009.)

Tags: , , , , ,


  • Andy Fragen says:

    Edward, in the last version’s comments there was a question regarding excluding specific pages from the header. I’ve added those individual pages in the `exclude` portion of the wp_list_pages function. I have a question. Is it possible to abstract these pages to a variable within that code segment and then simply add or delete page id’s to this variable?


    $exclude_pages="2, 15, 17, 634, 700";

    '); ?>

    <a href="" class="active">
    <?php wp_list_pages('title_li=&depth=1&exclude=2, 15, 17, 634, 700');

    I’m just trying to make the change in a single location.

    .-= Andy Fragen´s last blog … November 7 Merit Badge Clinic =-.

    • Hi Andy – Let me look into this …

      PS: The only place the theme uses the wp_list_pages() function is in the header.php file for generating the menu links. The exclude parameter is only used once, but here is the code for the menu including the idea you are asking for (FMF):

      <ul id="menu">
        <?php $exclude_pages="'&exclude=2'"; ?>
        <?php if (is_home() || is_front_page()) { ?>
          <?php wp_list_pages('title_li=&depth=1&include=2'); ?>
          <?php wp_list_pages("title_li=&depth=1" . $exclude_pages); ?> <!-- Note the changes to use the exclude_pages variable -->
        <?php } else { ?>
          <li><a href="<?php bloginfo('url'); ?>" class="active"><?php _e('Home') ?></a></li>
          <?php wp_list_pages('title_li=&depth=1'); ?> <!-- Only displays "parent" pages -->
        <?php } ?>

      The menu is the only place I would expect this to work, if you are looking to incorporate the idea in other areas it would require a much more in-depth review.

      PPS: Remember if you implement this you will have to make the same edits after every theme update.

  • Andy Fragen says:

    Thanks Edward. I added the exclude to the `else` line so I have it in 2 places. If I don’t have it here then all pages are listed on any non-Home page. Since I have 5 or more pages I don’t want listed this was my solution. You can see the additional pages in the sidebar.

    Also, I put the whole header.php file in the Multi theme, as you intended 😉 so I shouldn’t have to change it with theme updates. Since I’m going to keep adding certain pages to the exclusion list for the menu I think that’s the way to go.

    There was a small error before the `rel=”nofollow”` part that I figured out ( I have zero PHP skills).

    <a href=" " rel="nofollow" class="active">

    Thanks again.

  • Andy Fragen says:

    my code got chopped.

    I’ll abstract it.

    <?php } else { ?>
    <li><a href=”<?php bloginfo(‘url’); ?> ” rel=”nofollow” class=”active”><?php _e(‘Home’) ?></a></li>
    <?php wp_list_pages(‘title_li=&depth=1’ . $exclude_pages); ?> <!– Only displays “parent” pages –>
    <?php } ?>
    .-= Andy Fragen´s last blog … November 7 Merit Badge Clinic =-.

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2009-2018 BuyNowShop All rights reserved.
This site is using the Custom Child-Theme, v1.0.3, on top of
the Parent-Theme Desk Mess Mirrored, v2.5, from BuyNowShop.com