Forums

[Plugin: Google AJAX Translation] I do not see the link translation (8 posts)

  1. triamax
    Member
    Posted 2 years ago #

    Hi mono, I'm new to wordpress and I need your help or someone else.
    I have tried to solve the problems facing users commented but the truth can not solve.

    This is the post
    http://www.triamax.com/index.php/noticias/2009/08/yelena-isinbayeva/

    I insert the following code in this publication:
    <div id="innerContent">
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

    I'm really going crazy because I can not find a solution

    Best,
    Juannito

  2. monodistortion
    Member
    Posted 2 years ago #

    That looks almost right I think. I don't know exactly how your theme works but it looks like you would edit the file called single.php and add that line:

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

    Also you would need to close that div somewhere like this:

    </div>
    <!-- You can start editing here. -->
    
  3. triamax
    Member
    Posted 2 years ago #

    Thanks for your reply.
    I reactivate the plugin. I could make it show, but does not work.

    I click TRANSLATE but does not makes the translation :(

    You can help me?

  4. monodistortion
    Member
    Posted 2 years ago #

    Did you make the changes I wrote in the last post? I can look at your theme if you put the files online where I can download them.

  5. triamax
    Member
    Posted 2 years ago #

    Hi mono, here is the theme http://www.triamax.com/tmaxnews.zip
    I hope you can help me,

    Thanks!

  6. monodistortion
    Member
    Posted 2 years ago #

    Sure, I looked at the files page.php and single.php.

    I changed the lines in page.php from:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div id="entryMeta">
    		<h2 class="singlePageTitle"><?php the_title(); ?></h2>
    	</div>
    	<div id="innerContent">
    		<div class="post">
    			<?php the_content(); ?>
    		</div>
    	</div><!-- Enf of innerContent -->
    <?php endwhile; else : endif; ?>
    

    to:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    	<div id="entryMeta">
    		<h2 class="singlePageTitle"><?php the_title(); ?></h2>
    	</div>
    	<div id="innerContent">
    		<div class="post">
    			<?php the_content(); ?>
    		</div>
    	</div><!-- Enf of innerContent -->
    </div>
    <?php endwhile; else : endif; ?>
    

    and changed the lines in single.php:

    <div id="innerContent">
    
    		<?php if($theme_options['enablePhotoGallery'] == 1) { ?>
    			<?php if ( in_category($theme_options["photoGalCatID"]) ): ?>
    				<img src="<?php viva('NpAdvSinglePhoto','17'); ?>" alt="<?php the_title(); ?>" class="phLargePhoto" />
    			<?php endif; ?>
    		<?php } ?>
    		<?php if($theme_options['enableVideo'] == 1) { ?>
    			<?php if ( in_category($theme_options["videoCatID"]) ): ?>
    				<div class="video">
    					<object type="application/x-shockwave-flash" style="width:506px; height:280px;" data="<?php echo get_post_meta($post->ID, 'video', true); ?>">
    					<param name="movie" value="<?php echo get_post_meta($post->ID, 'video', true); ?>" /></object>
    				</div>
    			<?php endif; ?>
    		<?php } ?>
    		<?php the_content(); ?>
    <?php comments_template(); ?>
    </div><!-- Enf of innerContent -->
    

    to:

    <div id="innerContent">
    	<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    		<?php if($theme_options['enablePhotoGallery'] == 1) { ?>
    			<?php if ( in_category($theme_options["photoGalCatID"]) ): ?>
    				<img src="<?php viva('NpAdvSinglePhoto','17'); ?>" alt="<?php the_title(); ?>" class="phLargePhoto" />
    			<?php endif; ?>
    		<?php } ?>
    		<?php if($theme_options['enableVideo'] == 1) { ?>
    			<?php if ( in_category($theme_options["videoCatID"]) ): ?>
    				<div class="video">
    					<object type="application/x-shockwave-flash" style="width:506px; height:280px;" data="<?php echo get_post_meta($post->ID, 'video', true); ?>">
    					<param name="movie" value="<?php echo get_post_meta($post->ID, 'video', true); ?>" /></object>
    				</div>
    			<?php endif; ?>
    		<?php } ?>
    		<?php the_content(); ?>
    	</div>
    <?php comments_template(); ?>
    </div><!-- Enf of innerContent -->
    

    Some CSS changes might still be needed to make things look right though.

  7. dwdonline
    Member
    Posted 1 year ago #

    Hi, Maybe you can help me. I cannot seem to get the site to translate the title. It only does the content below.

    Here is the content of my page.php

    <?php get_header(); ?>
    <?php get_sidebar(1); ?><?php get_sidebar(2); ?>
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<div id="post-<?php the_ID(); ?>">
    
    				<div class="indent bgnone">
    
    					<div class="title-page01"><h2><?php the_title(); ?></h2></div>
    
    						<div class="text-box">
    
    							<?php the_content('<p class="serif">Read the rest of this page</p>'); ?>
    
    						</div>	
    
    						<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    						<div class="link-edit"><?php //edit_post_link('Edit Post', ''); ?></div>	
    
    				</div>
    
    			</div>
    		<?php endwhile; endif; ?>
    
    </div>
    
    <?php get_footer(); ?>
  8. monodistortion
    Member
    Posted 1 year ago #

    Dwdonline, can you post a link to your page? The code all looks ok to me.

    Does it work on the default theme?

Topic Closed

This topic has been closed to new replies.

About this Topic