Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

How to change header image depending on language (using qTranslate) ?


  #1  
Old Dec 27, 2010, 04:26 AM
marsyg
 
8 posts · Dec 2010
Hi!

How can I have different headers for different languages?

What file do I need to modify and what code do I have to put in/change?
  #2  
Old Dec 27, 2010, 05:08 AM
juggledad's Avatar
juggledad
 
23,671 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what version of Atahualpa and WP?
What version of qTranslate
What is your url?

Do you know if qTranslate adds anything to the <body> statement?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 27, 2010, 06:00 AM
marsyg
 
8 posts · Dec 2010
Quote:
Originally Posted by juggledad
what version of Atahualpa and WP?
What version of qTranslate
What is your url?

Do you know if qTranslate adds anything to the <body> statement?
Hi!

I'm using Atahualpa 3.4.9 and Wordpress 3.0.3

The url is www[x]jordgubbar[x]org

No idea if qTranslate adds anything to the body, couldn't find anything atleast.

Thanks!

Last edited by marsyg; Dec 27, 2010 at 06:03 AM.
  #4  
Old Dec 27, 2010, 06:27 AM
juggledad's Avatar
juggledad
 
23,671 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well I just took a look at the pages and nothing is added. The only way to handle something like this would be to dig into the code and test for the language and then alter the theme code. You could possibly add a new folder 'images/header/language1' and then in bfa_rotating_header_images.php test for the language and then change the image path
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 27, 2010, 07:07 AM
marsyg
 
8 posts · Dec 2010
Quote:
Originally Posted by juggledad
Well I just took a look at the pages and nothing is added. The only way to handle something like this would be to dig into the code and test for the language and then alter the theme code. You could possibly add a new folder 'images/header/language1' and then in bfa_rotating_header_images.php test for the language and then change the image path
I'm not quite sure what you mean with "test for the language"

I assume I have to paste in some code that decides which imagepath it would use depending on the language (PL/SV)

I can't write the code myself and have really no clue where to paste it. Any tips on how I should proceed?

I'll donate if you can help me with this!

Regards
  #6  
Old Dec 27, 2010, 08:58 AM
juggledad's Avatar
juggledad
 
23,671 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
this is something I'd have to charge to look at. You would have to look thru the qTranslate code to see how you could tell what language is current. Then using that info you would have to modify the theme code to pick the image or image folder to use, based on the language being used. My quick guess is that this would take a couple hours to research and then code and test so it's beyond the scope of the forum.

You could try putting an AD in the 'Customization, Design, Programming...' forum and see if you could hire someone to do this for you.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Dec 27, 2010 at 09:02 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change language jankph Languages & Translations 2 Feb 3, 2010 02:02 PM
Titles appear in one language only with qTranslate anneks Plugins & Atahualpa 3 Oct 21, 2009 08:25 AM
qtranslate and atahualpa 3.4.2 menubar or header paolo-from-italy Plugins & Atahualpa 2 Aug 13, 2009 03:13 PM
custom image in sidebar depending on page-ID vito Sidebars & Widgets 1 Aug 12, 2009 11:26 AM
Put the qTranslate language selector into the header or page menu DarrenNI Header configuration & styling 1 Jun 19, 2009 04:01 AM


All times are GMT -6. The time now is 02:01 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.