Forum Replies Created

Viewing 15 replies - 31 through 45 (of 50 total)
  • Hmm. You copied over a mistake it looks like.
    Replace with this instead.
    `<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; xml:lang=”EN” lang=”EN”>

    <?php get_header(); ?>

    <body>
    <div class=”main”>
    <div class=”container”>
    <div class=”span-24 header”>
    <h1 class=”name”>”><?php bloginfo(‘name’); ?><!–<span class=”bubble”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/img/<?php echo $bubbles; ?>” alt=”bubbles” /></span>–></h1>
    <span class=”slogan”><?php bloginfo(‘description’); ?></span>
    </div>

    <?php include (TEMPLATEPATH . “/navigation.php”); ?>

    <?php include (TEMPLATEPATH . “/banner.php”); ?>

    <div class=”span-24 content”>
    <div class=”span-16 post-wrapper”>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <li class=”post”>
    <div class=”text-header”>
    <h2 class=”title” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <span class=”no”><?php comments_number(‘0’, ‘1’, ‘%’, ‘comments’); ?></span>
    <div class=”clear”></div>
    </div>

    <div class=”hr”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/img/<?php echo $scissors; ?>” alt=”scissors” /></div>

    <div class=”info-small”>
    <span class=”date”><?php the_time(‘F jS, Y’) ?></span><span class=”author”><?php the_author() ?></span><span class=”cat”><?php the_category(‘, ‘) ?></span>
    </div>

    <?php the_content(‘Read the rest of this entry ?’); ?>
    <?php the_tags(‘<span class=”tag”> Tags: ‘, ‘, ‘, ‘</span>’); ?>
    <?php comments_popup_link(‘No Comments ?’, ‘1 Comment ?’, ‘% Comments ?’); ?>
    <?php edit_post_link(‘Edit’, ‘<p class=”edit”>’, ‘</p>’); ?>

    <?php endwhile; ?>
    <?php else : ?>
    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that isn’t here.</p>

    <?php endif; ?>
    <li class=”post”>
    <p class=”alignleft”><?php next_posts_link(‘? Older Entries’) ?></p>
    <p class=”alignright”><?php previous_posts_link(‘Newer Entries ?’) ?></p>

    </div>
    <div class=”span-8 last sidebar”>
    <?php get_sidebar(); ?>
    </div>
    </div>

    <?php get_footer(); ?>
    </div>
    </div>
    </body>
    </html>

    Did you delete the post? Try writing a new post and publish it.

    How about a link to your site?

    Replace with this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN">
    
    <?php get_header(); ?>
    
    <body>
    <div class="main">
    <div class="container">
    <div class="span-24 header">
    <h1 class="name">"><?php bloginfo('name'); ?><!--<span class="bubble"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/<?php echo $bubbles; ?>" alt="bubbles" /></span>--></h1>
    <span class="slogan"><?php bloginfo('description'); ?></span>
    </div>
    
    <?php include (TEMPLATEPATH . "/navigation.php"); ?>
    
    <?php include (TEMPLATEPATH . "/banner.php"); ?>
    
    <div class="span-24 content">
    <div class="span-16 post-wrapper">
    
          <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); ?>
          <li class="post">
          <div class="text-header">
          <h2 class="title">" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
          <span class="no"><?php comments_number('0', '1', '%', 'comments'); ?></span>
          <div class="clear"></div>
          </div>
    
          <div class="hr"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/<?php echo $scissors; ?>" alt="scissors" /></div>
    
          <div class="info-small">
          <span class="date"><?php the_time('F jS, Y') ?></span><span class="author"><?php the_author() ?></span><span class="cat"><?php the_category(', ') ?></span>
          </div>
    
          <?php the_content('Read the rest of this entry ?'); ?>
          <?php the_tags('<span class="tag"> Tags: ', ', ', '</span>'); ?>
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
          <?php edit_post_link('Edit', '<p class="edit">', '</p>'); ?>
    
          <?php endwhile; ?>
          <?php else : ?>
        * <h2>Not Found</h2>
          <p>Sorry, but you are looking for something that isn't here.</p>
    
          <?php endif; ?>
          <li class="post">
          <p class="alignleft"><?php next_posts_link('? Older Entries') ?></p>
          <p class="alignright"><?php previous_posts_link('Newer Entries ?') ?></p>
    
    </div>
    <div class="span-8 last sidebar">
    <?php get_sidebar(); ?>
    </div>
    </div>
    
    <?php get_footer(); ?>
    </div>
    </div>
    </body>
    </html>

    I would download the WordPress ZIP file, and FTP upload/overwrite ONLY that wp-header file.

    Via FTP client or Dashboard -> Design -> Theme Editor.

    Well, remember to change that every time you upgrade WordPress.

    That’s the style.css file. Click on Main Index Template (index.php) from the list on the right.

    Correction:
    .more:before{content:'\5B...\5D';}

    I tried this but it’s still a part of the link.
    <div class="entry"><?php the_content('<span class="more"><br />Continue Reading &raquo;</span> ' . get_the_title('', '', false)); ?>

    In style.css:
    .more{content:'\5B...\5D';}

    So I’m guessing the only way is to type the […] just before you insert <!–more–> in your post.

    It depends on where you want that link to appear on your homepage, but it has to reside within “The Loop.” Post your index.php’s code here, and I can tell you where to paste the new line.

    Most likely it’ll be immediately after:

    <div class="entry">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>

    @and also,
    I think that’s possible, but it defeats the purpose of having a separate page for the post; and it’ll eventually make the homepage extremely long if you are to have more posts in the future.

    I think you’d have to create a separate php file (essentially a new template file) for each of your main navigation elements. Because if you were to do what ALA suggests here, there is no way to distinguish each of the pages (assuming you’ve created them with Write -> Page) since the content is pulled dynamically into page.php.

    You can click on the post title from the homepage, which brings you to the post’s page, and I was able to comment there. Feel free to delete it.

    If you have FTP access to your server, you can edit the file with any text editor. But if you don’t know what I’m talking about, you can edit the file with Theme Editor from your WordPress Dashboard.

    Dashboard -> Design -> Theme Editor -> index.php

    The code missing on the index.php file is below.
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    I was able to comment just now.
    The problem is that there isn’t an obvious link to comment. Are you using a downloaded theme, or did you design it?

Viewing 15 replies - 31 through 45 (of 50 total)