Jump to content

A2JC4life

Member
  • Posts

    15
  • Joined

  • Last visited

About A2JC4life

  • Birthday March 22

Profile Information

  • Gender
    Female
  • Location
    Virginia, USA

Contact Methods

  • Website
    http://www.titus2homemaker.com

A2JC4life's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Can anyone tell me what this means? Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml <html> ✉ Many Document Types based on XML need a mandatory xmlns attribute on the root element. For example, the root element for XHTML might look like: <html xmlns="http://www.w3.org/1999/xhtml"> I get this error when attempting to validate my WordPress theme. If I add the attribute it specifies, I get a different error, about the xmlns not existing or something. What do I need to do?
  2. A2JC4life

    PHP or CSS?

    Yep; that's it. Thanks! I thought I was probably missing a bit of code, since nothing was showing up, but I wasn't totally sure what the code I did have in there was supposed to do, so wasn't positive. And I think that's the last major piece of my theme, so thank you very much!
  3. A2JC4life

    PHP or CSS?

    I'm new to WordPress template design, and have been working on this: www.titus2 homemaker.com/shop2 The comments don't work at all. You can click on either "No comments" or "comments (0)" and you get a "new" page, but none of the commenting stuff is there. Is this a problem in the PHP or simply a lack of CSS for this section in the stylesheet? (And are there really supposed to be two separate comments links at the bottom of the posts like this?) Oops. I forgot to post the relevant code. <div id="container"> <?php if(have_posts()): ?> <?php while(have_posts()): the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="posttitle"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_time('F j, Y'); ?> </div> <div class="entry"> <?php the_content(); ?> <!-- AddThis Button BEGIN --> <a href="http://www.addthis.com/feed.php?pub=a2jc4life&h1=http%3A%2F%2Fwww.titus2homemaker.com%2Ffeed%2F&t1=" onclick="return addthis_open(this, 'feed', 'http://www.titus2homemaker.com/feed/')" alt="Subscribe using any feed reader!" target="_blank"><img src="http://s7.addthis.com/static/btn/sm-feed-en.gif" width="83" height="16" alt="Subscribe" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=a2jc4life"></script> <!-- AddThis Button FINISH --> <!-- AddThis Button BEGIN --> <?php echo "<div><a class=\"addthis_button\" href=\"http://www.addthis.com/bookmark.php?v=250&pub=a2jc4life\" addthis:url=\"".urlencode(get_permalink())."\" addthis:title=\"".urlencode(get_the_title($id))."\"><img src=\"http://s7.addthis.com/static/btn/v2/lg-share-en.gif\" width=\"125\" height=\"16\" alt=\"Bookmark and Share\" style=\"border:0\"/></a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#pub=a2jc4life\"></script></div>"; ?> <!-- AddThis Button FINISH --> <p class="postmetadata"> <?php _e('Filed under:'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?><br /> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?> </p> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php comments_popup_link(__('[Comments (0)]', 'journalized'), __('[Comments (1)]', 'journalized'), __('[Comments (%)]', 'journalized')); ?> [<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo attribute_escape(__('Permanent Link:', 'journalized')); ?> <?php the_title(); ?>"><?php _e('link', 'journalized'); ?></a>] [<a href="<?php trackback_url() ?>" title="<?php _e('The URI to TrackBack this entry', 'journalized'); ?>"><?php echo _c('TB|initials for Track Back', 'journalized'); ?></a>] </div> </div> <?php endwhile; ?> <div class="navigation"> <?php posts_nav_link(); ?> </div> <?php else : ?> <div class="post"> <h2><?php _e('No Posts Were Found'); ?></h2> </div> <?php endif; ?> </div>
  4. Yes, I have no idea why I typed "line"; I've edited the post now. That fixed it; thanks!
  5. Never mind. I've been working on this for a couple of weeks, but now that I posted the question, I've figured it out. It was a stupid mistake. I must've cut-and-pasted, because several of my sidebar elements were notated as classes, rather than id's. It works now. Okay, no it doesn't. The left sidebar works, but the right sidebar doesn't. I don't get it, because the code is exactly the same (except that they float to different sides). I even copied-and-pasted the whole block again - then changed the 1's to 2's and changed the float back to right - to make sure. So I'm apparently still missing something. /* Theme Name: Titus2Homemaker Theme URI: Description: Theme designed for the Titus 2 Homemaker blog. Version: 1.0 Author: Rachel Ramey Author: http://www.titus2homemaker.com */ /***** TEXT AND LINKS *****/ body{ font-family: Arial, Helvetica, Georgia, Sans-serif; font-size: .8em; text-align: center; color: #333333; } h1, h2, h3, h4, h5, h6 { color: #EEEEEE; font-family: Georgia, Helvetica, Times, Serif; margin: 0; padding: 0; } h1 { font-size: 2em; padding: 0 0 5px 0; } h2 { font-size: 1.5em; } h3 { font-size: 1.4em; } h4 { font-size: 1.3em; background: #5F7797; padding: 2px auto 1px 1px; border: 1px solid #354463; } h5 { font-size: 1.2em; } h6 { font-size: 1.1em; } a:link, a:visited { text-decoration: none; color: #003399; } a:hover { text-decoration: none; color: #5F7797; } blockquote { margin: 15px 30px 10px 30px; padding: 0 10px 10px 10px; background: #A7AEB8; } p{ padding: 10px 0 0 0; } /***** LAYOUT AND CONTENT *****/ body { margin: 0; vertical-align: top; background: #C6C9D0 url(images/winterflor.jpg) repeat; } #wrapper { margin: 10px auto 0 auto; width: 800px; text-align: left; } #headerarea { float: left; width: 800px; border: 1px solid #354463; } #header { float: left; background: #7C8AA4; width: 100%; height: 170px; } #navbar { float: left; background: #7C8AA4; width: 100%; height: 30px; border-top: 4px solid #EEEEEE; border-bottom: 4px solid #EEEEEE; } #container{ margin: 8px auto 0 auto; float: left; width: 494px; background: #BFC4CB; border: 1px solid #354463; } .post{ padding: 10px 0 10px 0; } .post h2{ font-family: Georgia, Helvetica, Times, Serif; font-size: 1em; } .entry{ line-height: 1em; } p.postmetadata{ margin: 10px 0 0 0; } #sidebars{ margin: 8px auto 0 8px; float: left; width: 294px; background: #A7AEB8; border: 1px solid #354463; display: inline; } #sidebar0{ margin: 0; float: left; width: 294px; background: #A7AEB8; display: inline; } #sidebar0 ul{ list-style-type: none; margin: 0; padding: 0 5px 0 5px; } #sidebar0 ul li{ padding: 10px 0 10px 0; } #sidebar0 ul li h2{ font-family: Georgia, Helvetica, Times, Serif; font-size: .8em; } #sidebar0 ul ul li{ padding: 0; } #quote { padding: 20px 30px 0 30px; font-style: italic; text-align: justify; } #sidebar1{ margin: 12px auto 0 auto; float: left; width: 147px; background: #A7AEB8; display: inline; } #sidebar1 ul{ list-style-type: none; margin: 0; padding: 0 5px 0 5px; } #sidebar1 ul li{ padding: 10px 0 10px 0; } #sidebar1 ul li h2{ font-family: Georgia, Helvetica, Times, Serif; font-size: .8em; } #sidebar1 ul ul li{ padding: 0; } #sidebar2{ margin: 12px auto 0 auto; float: right; width: 147px; background: #A7AEB8; display: inline; } #sidebar2 ul{ list-style-type: none; margin: 0; padding: 0 5px 0 5px; } #sidebar2 ul li{ padding: 10px 0 10px 0; } #sidebar2 ul li h2{ font-family: Georgia, Helvetica, Times, Serif; font-size: .8em; } #sidebar2 ul ul li{ padding: 0; } table#wp-calendar{ width: 141px; } #footer{ clear: both; float: left; width: 800px; } /***** NAVIGATION *****/ #search { margin: 0 15px 0 0; width: 206px; height: 30px; float: right; vertical-align: center; } #nav { margin: 0 0 0 5px; width: 566px; height: 30px; float: left; vertical-align: center; list-style-type: none; } #nav ul { margin: 0; padding: 0; list-style-type: none; } #nav li { margin: auto 3px auto 3px; padding: auto 2px auto 2px; float: left; vertical-align: center; } #nav a { color: #EEEEEE; text-decoration: none; font-family: Georgia, Helvetica, Times, Serif; text-style: bold; font-size: 1.5em; display: block; height: 30px; } #nav a:hover { background: #BFC4CB; color: #333333; } #nav .current_page_item a { background: #A7AEB8; color: #333333; } #nav { } #search { } (Ignore the last two, placeholder, bits. I haven't gotten that far yet.)
  6. This page: www.titus 2 homemaker.com/shop2 is the test site for a template I'm working on. I can't get the bullets in the sidebar to go away. The sidebar is created with a div (sidebars) that has three others nested in it (sidebar0 - the upper; sidebar1 - the lower left; and sidebar2 - the lower right). I have tried setting the following: ul {line-style-type: none; } in the main page instructions, and in every one of the sidebar divs, and it isn't working. (When I set the instructions for the main page this way, the bullets disappeared for the navigation bar - which I also wanted - but I can't get the ones in the sidebar to disappear.) What am I missing?
  7. This is the template I'm currently working on: titus2home maker.com /shop2 How can I make the backgrounds for the navigation bar fill the full height of that bar? They are currently set up as the backgrounds for the links that comprise the list items. Is there another way I could do this?
  8. Yay! Thank you. The endif was missing for the second dynamic sidebar. Once you told me what to look for, I found it.
  9. <?php bloginfo('name'); ?> <?php bloginfo('description'); ?> <?php include(TEMPLATEPATH . '/searchform.php'); ?> >Home <?php wp_list_pages('title_li=&sort_column=menu_order&depth=2'); ?> <?php if(have_posts()): ?> <?php while(have_posts()): the_post(); ?> <?php the_title(); ?> <?php the_content(); ?> <?php echo ""; ?> <?php _e('Filed under:'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php the_author(); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?> <?php wp_link_pages(array('before' => 'Pages: ', 'after' => ' ', 'next_or_number' => 'number')); ?> <?php comments_popup_link(__('[Comments (0)]', 'journalized'), __('[Comments (1)]', 'journalized'), __('[Comments (%)]', 'journalized')); ?> [<?php _e('link', 'journalized'); ?>] [<?php echo _c('TB|initials for Track Back', 'journalized'); ?>] <?php endwhile; ?> <?php posts_nav_link(); ?> <?php else : ?> <?php _e('No Posts Were Found'); ?> <?php endif; ?> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?> <?php _e('Categories'); ?> <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?> <?php _e('Archives'); ?> <?php wp_get_archives('type=monthly'); ?> <?php wp_list_pages('title_li= Pages'); ?> <?php endif; ?> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?> <?php _e('Calendar'); ?> <?php get_calendar(); ?> <?php get_links_list(); ?> <?php _e('Meta'); ?> <?php wp_register(); ?> <?php wp_loginout(); ?> <?php wp_meta(); ?> Copyright © 2010 <?php bloginfo('name'); ?>
  10. Forgot to subscribe to the thread.
  11. This is the WordPress template I'm working on. (I had it broken up into its separate files, but I kept getting this mysterious "end" error, so I put it all back into one for easier troubleshooting.) I'm getting this error: Parse error: syntax error, unexpected $end in /home/homework/public_html/shop2/wp-content/themes/NewTheme/index.php on line 171 Line 171 is the
  12. Not all of those drop-downs are javascript-based, though. There are pure CSS versions, and they don't require plugins.
  13. I hope this is the right place to post this; I'm assuming that most PHP users know CSS, but not necessarily the other way around. I'm pretty new to PHP and to CSS, although I have a fair amount of familiarity with HTML. I'm working on designing a WordPress template, and I think I have most of it written okay. (I haven't written the actual style sheet for my new template yet, but I've been playing with parts and pieces in other template's sheets to learn what they do.) There's one thing I'm still super-stuck on, though. I want a navigation bar that displays only the top-level pages, but puts the child pages in drop-downs when you hover over them. I understand the basic concept of creating the hover options in CSS, placing the "non-hovered" options off-page with negative numbers to make them invisible, etc. But I cannot seem to grasp how to integrate the CSS with the HTML produced by Wordpress's wp_list_pages function. How do I tell the CSS which "tier" it's working with, if I am not producing the HTML to add classes? This is a key part of my layout design, and I just can't seem to wrap my head around it.
×
×
  • Create New...