• 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
    https://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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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. -->
    
    Thread Starter triamax

    (@triamax)

    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?

    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.

    Thread Starter triamax

    (@triamax)

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

    Thanks!

    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.

    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(); ?>

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

    Does it work on the default theme?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Google AJAX Translation] I do not see the link translation’ is closed to new replies.