• Hi.
    I’m using the google ajax translation plugin (ver 4.05) but I’m having some issues that I can’t figure how to solve.

    My template uses excerpts and in the main page (https://motus-anima.com), the first excerpt always has the “read more” (ver más) link disabled, as well as the “translator” and “share/save” buttons are disabled too.

    Another problem I’m having is whenever a full story is loaded, for instance https://motus-anima.com/2009/07/zoe/ the translator button does nothing.

    I have read the post https://www.ads-software.com/support/topic/283638?replies=23 where is suggested to change some lines in single and page.php. However in my template single.php only has this:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php

    $prev_link = get_previous_post_link(‘« %link’);

    And page.php only has this:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”Post”>

    I also have read the post https://www.ads-software.com/support/topic/285014?replies=8 but didn’t get how to fix it as I’m a newbie and I’m afraid to mess it all (I have no idea how to make an apache alias).

    Thanks in advance for any help you can give me.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Sorry it took me a while to get back to you.

    I looked at your site before and I didn’t see a problem with the index page with excerpts.

    Each theme is different and sometimes code is put into different files so it’s hard to say where to fix the problem without looking at the template files. Did you make this template or download it from somewhere?

    Thread Starter chejo59

    (@chejo59)

    Hi, thanks for your answer.
    It’s an artisteer theme, i’ve tested 2 of them and always happens the same.

    If you wish, you can get it here: https://www.mediafire.com/?nxnmdmfdgmj

    Thanks in advance for your support

    I tried out that theme and made a couple changes to the files single.php and page.php.

    For single.php change line 34 from:

    <div class="art-Post-inner art-article">
    

    to:

    <div class="art-Post-inner art-article"><div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    

    and change line 84 from:

    <center>
    

    to:

    </div><center>
    

    Then for page.php change line 8 from:

    <div class="art-Post-inner art-article">
    

    to:

    <div class="art-Post-inner art-article"><div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    

    and line 61 from:

        </div>
    

    to:

        </div></div>
    

    You’ll also have to make a few CSS changes for things to look right though.

    Thread Starter chejo59

    (@chejo59)

    Thanks a lot monodistortion!!

    It works great ??

    Thread Starter chejo59

    (@chejo59)

    Sorry for opening again this thread but since I upgraded to version 0.4.9 the plugin won’t work any more.

    The theme with the modifications you suggested is here

    Hope you can give me some advice what to change!!

    Thanks in advance.

    Sorry that link didn’t work.

    I looked at an older version of your theme here:
    https://www.mediafire.com/?nxnmdmfdgmj

    Do you still have the function:

    <?php wp_footer(); ?>
    

    at the end of your footer.php file? That’s required for this plugin to work.

    Thread Starter chejo59

    (@chejo59)

    Thanks for your time monodistortion, that was ONE of the problems. And sorry for the bad link, here you can grab the theme:
    https://www.mediafire.com/?tgdc4hddmjy

    However, there are 2 more issues.
    1. If you go to https://motus-anima.com you’ll see the [Translate] link in each of the excerpts. Is it possible to hide it?

    2. When you go to any of the individual posts, the pup up window opens in the upper left corner and not under the [Translate] link.

    Thanks in advance for your time to help me!

    I tried your theme on my local computer and everything works ok.

    One error I saw was in the the file single.php there’s a ? at the beginning of the file that shouldn’t be there.

    Also, it looks like you modified the ajaxtranslation.php file and this is probably causing some of the problem.

    I would fix those two things first and tell me what happens.

    Thread Starter chejo59

    (@chejo59)

    Thanks a lot.

    I removed the ? at the start of the file single.php

    For the ajaxtranslation.php file, I downloaded the zip file, unzipped and uploaded that php file to my site.

    Using ie8, firefox and opera, I see the very same issues, the [Translate] link in each of the excerpts and the pup up window opening in the upper left corner and not under the [Translate] link.

    Any ideas what could it be??

    Thanks!

    Since it works fine on my computer it has to be conflicting with one of your other plugins. It looks like one or more of your plugins is modifying the excerpt function and also mangling the html for the [Translate] button.

    I would try temporarily disabling each plugin to see if you can find which plugin(s) are causing the problem.

    Thread Starter chejo59

    (@chejo59)

    Ok, thanks for your help.

    I’ll keep using ver. 04.5 until i find what plugin is causing the issues.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Google AJAX Translation] Translator button disabled with excerpts template’ is closed to new replies.