• ballyhoopro

    (@ballyhoopro)


    I am working on a custom WordPress theme created by somebody else and I have trouble figuring out why the plugin does not work on the home page. It works great on the rest of the pages but not on the home page.

    The structure of the home page is different than the others. so I am not sure where to add the code https://www.udderone.com

    I have tried adding the code snippet to header.php and footer.php and page template but still no luck.

    Please help.

    https://www.ads-software.com/plugins/google-language-translator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • you include wp_footer in footer page then after working.

    i test great work

    Thread Starter ballyhoopro

    (@ballyhoopro)

    Thanks avadh.
    Its been a while since I posted this. After playing around with it I figured it out. The home page was structured different than the rest of the pages so I adjusted home page php to match the inner php templates.

    Not sure if that is good practice but I cannot understand the need to create two different php templates that cannon communicate with each other like this case where Home page had its own structure (header,footer, etc) and the rest of the site has another template structure making it more difficult to reproduce same content like footer, side bars etc.

    Anyways, It took me a few hrs but It’s over now.

    Cheers!

    hi @ballyhoopro,

    can u explain further on how you had edited the code. since i also having the same problem but my case even worse where its not just not displaying in my homepage but its neither displaying in any other pages as well.
    I am not sure whether i had inserted the code in the wrong place or not.

    But i had try to insert in the header in between the <head></head>,
    and also in the page template below the <? php get_header(); ?>

    Your help would be really appreciated. Thanks. ??

    Thread Starter ballyhoopro

    (@ballyhoopro)

    @angel Love,

    code – <?php echo do_shortcode(‘[google-translator]’); ?> – needs to be inserted in the <header> section so you would go to appearance-editor-header.php and insert by itself, meaning that DON’T place inside a <div>

    Hope this helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google language translator plugin not working on homepage’ is closed to new replies.