Public Ticket #30845

Translate header intro text


    Is this will fix my issues with TAO? What do you think

    Comment posted August 7, 2014

  • Zlatan Halilovic

    Once again, great job Peter! 

    Comment posted May 21, 2014

  • Paolo Anonima

    Great job Péter!

    Thank you very much, you helped me a lot.

    It works great with more then two languages, I just added some "elseif".
    Thanks again, Péter!!!


    Comment posted September 4, 2013

  • Rodrigo Henriques

    G R E A T !  !  !  Thank you,,

    Comment posted June 25, 2013

  • Péter Hupuczi
    Hi Friends, I have got successfully solved my problem and now I would like to share with everyone who will ever need this function to work with their version of yin yang. This short tutorial based on the following criterias: 1. You are legally Own Yin Yang WP theme 2. You are legally own The WordPress Multilingual Plugin Warning! This tutorial will NOT WORK if you have not using The WordPress Multilingual Plugin!!!! What problem it solves? Yin Yang theme allows you to display an Introduction text in the header which is restricted to only one language and you can not display it in other language. Step 1 BACK UP!!! Before you do anything you should back up the whole site database php files etc. EVERYTHING. The easiest way to backup is to download the yin yang folder all together via FTP to you computer so you can replace any file to its original if something goes really bad. Tip: I used to work in the Wordpress editor only ONE PHP file at a time and I used to copy the untouched code into my notepad so I always have the original code in case I will mess up. Step 2 After backing up login to your admin panel and choose the Appearance->Editor. So you will see the Yin Yang theme source files. Step 3 On the right hand side look for OPTIONS.PHP. Click on it so you can see the code. Scroll down util you see the Home Page Setting part and look for Headline Introduction Text. All yo need to do is to duplicate the whole part. Doing this step will create a duplicate text box for Intro text on the Appearance->Theme Options->Homepage Settings Note: you have to add different name for the duplicated textbox in order to to work! So the standard name for the textbox is "id" => "intro_text", so you have to rename it to "id" => "intro_text_whatever", Step 4 Next we have 2 text box in the Hompage Settings menu so you can put 2 different introduction text now! Go ahead and put your Introduction text in the desired language and don’t forget to click on Save Options Step 5 We have one more final step to take and we are done. So go back to your them editor where you can find all the theme source file and look for HEADER.PHP and click on it to see the source code. Remember before you touch anything select all the code and copy it into a note pad so you have the original untouched working code. After you done scroll down almost tot the bottom and look for . Basically you have to replace this snipped of code

    And change it to this:

    After you have changed the code click on Update File. If you followed exactly the instructions above you should be able to display your intro text in the header in another languge when you switching the language switcher. Hope you could follow the steps.

    Comment posted February 10, 2013

  • Zlatan Halilovic
    Hi Peter, unfortunately, I don't provide support for issues arisen with the usage of third party plugins, just like it is stated in the terms & conditions of this forum. However, I do have a suggestion for you, but I am not sure if it would work, since I am not the one who developed the plugin, and since I am not familiar with its code. Having said that, I think the best solution for you is to employ some kind of a conditional in the header.php file, where the tagline/info text is echoed, and display two different texts, based on which language is currently active. You need to look into the plugin's code though, to see if that's possible. By the way, if you are not a developer yourself, but absolutely need to have the mentioned feature available in your copy of the theme, then my best suggestion for you is to turn to Werkpress, the WordPress customization shop, http://werkpress.com/, so they can customize the theme for you. Oh, and thanks for buying the theme! Appreciate it. :) All the best, OnionEye

    Comment posted February 7, 2013

  • Péter Hupuczi
    Hi, i have started to translate my website into Hungarian languge. Everything seems ok but I have come across one little problem. How can I make the header introduction text to appear when switching to different languge? On the theme optins there is only one textbox I will need another text box for the other languge or mybe this can be done with a snippet of code... Anyone could help me to achive this goal would be aprichiated. Thank you Peter H.

    Comment posted February 5, 2013

Created  February 5, 2013
CategoryYin & Yang: Clear And Slick WP Portfolio Theme  Yin & Yang: Clear And Slick WP Portfolio Theme