• Awesome tool, really.

    I wasnt able to figure out the fix for the journalist theme by reading other thread suggestions, so starting a new thread.

    Below is what inxed.php looks like, single.php is pretty much the same. The title is the only text that gets translated.

    any suggestions? Thanks in advance.

    <?php get_header(); ?>
    
    <div id="content" class="group">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    <p class="comments"><a href="<?php comments_link(); ?>"><?php comments_number('without comments','with one comment','with % comments'); ?></a></p>
    
    <div class="main">
    	<?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    
    <div class="meta group">
    <div class="signature">
        <p>Written by <?php the_author() ?> <span class="edit"><?php edit_post_link('Edit'); ?></span></p>
        <p><?php the_time('F jS, Y'); ?> <?php _e("at"); ?> <?php the_time('g:i a'); ?></p>
    </div>
    <div class="tags">
        <p>Posted in <?php the_category(',') ?></p>
        <?php if ( the_tags('<p>Tagged with ', ', ', '</p>') ) ?>
    </div>
    </div>
    
    <?php if ( comments_open() ) comments_template(); ?>
    
    <?php endwhile; else: ?>
    <div class="warning">
    	<p>Sorry, but you are looking for something that isn't here.</p>
    </div>
    <?php endif; ?>
    
    <div class="navigation group">
    	<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    	<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    </div>
    
    </div> 
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry for the delay answering your question. I was busy moving and then away for the holidays.

    To fix the index.php file add this to line 5:

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

    and change line 6 from:

    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    to:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Then add this to line 23:

    </div>

    To fix the single.php file you can make the exact same changes.

    To fix the page.php file add this to line 6:

    <div class="post" id="post-<?php the_ID(); ?>">

    and change line 7 from:

    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    to:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Then add this to line 25:

    </div>

    Thread Starter gSaenz

    (@gsaenz)

    perfect, thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google AJAX Translation – Journalist Theme’ is closed to new replies.