WordPress.org

Ready to get started?Download WordPress

Forums

Need help troubleshooting Mallow (9 posts)

  1. fanuv24
    Member
    Posted 9 years ago #

    I'm using the Mallow theme on a new site - byron-is-a-weenie.com

    For some reason, in IE and Opera, the Calander wants to break the whole sidebar. Firefox seems to be ok. Trouble is, of course, that most of the people in our league are using IE and probably won't change just to look at our site.

    I've tried running this thru the W3 validator, and I get 14 errors, all of which appear to be false, as the < ul > tag that it is claiming is missing, is very much NOT missing.

    Can anyone help me figure this out? And is there any release of Mallow that does validate? The initial install of Mallow, before any modifications at all on my part, returned 76 errors.

    I realize that if the W3 is returning bogus results, there isn't much that can be done, but I'm curious, as I am extremely new to all of this validation and standards.

    Thank you for any help.
    Byron

  2. Yngwin
    Member
    Posted 9 years ago #

    The W3C is NOT returning bogus results. But the results may need some interpretation. You are probably missing an end-tag for the previous li, and some other things like that.

    What you have now is coded in a pretty ugly way. I suggest you look for something that is valid and better coded to start with.

  3. fanuv24
    Member
    Posted 9 years ago #

    Thanks, but as I know a lot of folks are using Mallow, I'm hoping one of those folks will be able to help. On the Mallow homepage, this is where I am referred to for help. And YES, W3 is returning bogus results results. Here is the sidebar template, where you can see that each of the 'Dates To Remember' IS clearly within < ul > < /ul > tags.

    <!-- Sidebar menu div -->
    <div id="menu">

    <?php $post = $posts[0]; /* Hack. Set $post so that the_date() works. */ ?>

    <?php /* If this is a category archive */ if (is_category()) { ?>
    <div id="sidebarcurrent">You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for the '<?php echo single_cat_title(); ?>' category.</div>

    <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    <div id="sidebarcurrent">You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for the day <?php the_time('l, F jS, Y'); ?>.</div>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <div id="sidebarcurrent">You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for <?php the_time('F, Y'); ?>.</div>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <div id="sidebarcurrent">You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for the year <?php the_time('Y'); ?>.</div>

    <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    <div id="sidebarcurrent">You are currently browsing the <a href="<?php bloginfo('url'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</div>

    <?php } ?>

    <ul>

    <li><?php _e('Author'); ?><ul>
    <li>Me? Byron Harvey. Pastor of an Evangelical Free church in Pennsylvania. Husband of one lovely wife. Father of three wonderful kids, including a beautiful daughter whom I inexplicably encumbered with a most outlandish and bizare spelling of her name. Unaffiliated politically; conservative/libertarian in political philosophy. NASCAR fan. Consumer of Quizno's Subs, Krispy Kreme donuts (even though they are absurdly trying to destroy a small mom and pop business in Nanty Glo, PA for no good reason other than to prove they are worthless corporate bullies), and Os Guinness books--not necessarily in that order. Collector of memorabilia featuring UVa athletes. Founder and Commish Emeritus of Armchair Football League. And, unbelievably, considered "opinionated" by some people. Also known far and wide as a <strong>weenie</strong>... Feature that...</li></ul></li>

    <li><?php _e('Archives'); ?><ul> <?php // see http://wiki.wordpress.org/wp_get_archives for more info ?>
    <?php wp_get_archives('type=monthly&show_post_count=true'); ?>
    </ul></li>

    <li><?php _e('Categories'); ?><ul> <?php // see http://wiki.wordpress.org/list_cats for more info ?>
    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','28') ?>
    </ul></li>

    <li>
    <?php _e('Blog Control'); ?>
    <ul><li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php"><?php _e('Control Panel'); ?></a></li>
    <li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php"><?php _e('Register'); ?></a></li>
    </ul></li>

    <li> <?php _e('Dates to Remember'); ?>
    <ul> <?php dates_to_remember(7); ?> </ul>
    </li>

    <li id="calendar">
    <?php get_calendar(); ?>
    </li>

    <?php /* If this is the frontpage */ if (is_home()) { ?>

    <li><?php _e('Links'); ?><ul>
    <?php get_links(-1, '<li>', '</li>', '', false, 'Name', false, true, -1, true); ?>
    </ul></li>

    <?php } ?>

    </ul>

    </div>

  4. shadow
    Member
    Posted 9 years ago #

    I am using mallow as one of my themes and it validates.

    I would suggest you work through each error one by one. Your first one on line 85 for instance requires a ul at the beginning and end.

    Just give it a try and see how you go.

  5. fanuv24
    Member
    Posted 9 years ago #

    But as I pointed out in the code I included, the ul is, in fact, at the begininng and end.
    <ul> <?php dates_to_remember(7); ?> </ul>

    Are you saying that plugins can not be used on WordPress and that anything in the side bar must be 100% hard coded?

    I can probably do that, but that sort of defeats the whole purpose of why I chose WordPress in the first place.

  6. Yngwin
    Member
    Posted 9 years ago #

    The ul is OK. But as I said before you are missing at least one closing li.

    And the W3C does NOT return bogus results, although the messages may be cryptic and hard to find what the problem exactly is. If the validator would give bogus results, web designers/developers would be all over it, trust me.

  7. Joshua Sigar
    Member
    Posted 9 years ago #

    <ul> <?php dates_to_remember(7); ?> </ul>

    I don't see the <ul> and </ul> in the source code.

  8. fanuv24
    Member
    Posted 9 years ago #

      <?php dates_to_remember(7); ?>

    I don't see the

      and
    in the source code.

    OK, now, we are getting to what I am seeing is the heart of the problem. It is definitely in the template, BUT when it is being displayed as an actual page in a browser, it is not there.

    This seems to be one of the major disadvantages I am having to working with the template chopped up into all these different pieces.

    How do we go about fixing something for validation that might actually be on parts of 2 or more template files? Because I am new to this, this is one aspect that was so much easier when there was just one simple file to edit; at least then I knew exactly where to look for the problem.

    And now - even more bizarely - the 'blog contro'l and the 'dates to remember' have been removed from the template since Sunday night (since they seemed to be the source of all the trouble), and yet are still showing up. I'm beyond confused now.

  9. Joshua Sigar
    Member
    Posted 9 years ago #

    To me, it seems that you've been looking at the wrong file?

    Remember to clear cache and refresh might help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.