• almarma

    (@almarma)


    Hi,

    I repeat here the question, because in qTranslate support forum I don’t get an answer:
    I’m using Artisteer software to create my templates for WP, and also a plugin for it called The Templateer, which adds some mods for Artisteer, like using only an image as Logo (Artisteer always shows Logo and text).

    My logo image is stored in the media manager and linked using the Artisteer options inside WP admin page. Well, qTranslate applies subdirs to the image URL when I change to any of the other languages on the site (English, Spanish and Norwegian). I have it disabled in the options, and works fine in posts and pages, but not in the header. You can see the problem on the site:

    http://eilertsen-granados.com/

    Default language is English, and works fine. But try to change to any of the others, and the logo disappears. I’ve tried with Query mode and Pre-route mode inside qTranslate prefs, but both didn’t work. I’ve also tried moving the logo file to other location on the server, and I have the same problem everywhere. Also tried changing the permalinks from the whole WP setup, and everything fails.

    It’s supposed that qTranslate should ignore image files (the logo is a PNG file), but it doesn’t do it in the header 🙁

    Here you have the debug info from qTranslate:
    [142 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Any ideas about how to fix it?

    Thank you!

    http://wordpress.org/extend/plugins/qtranslate/

Viewing 8 replies - 1 through 8 (of 8 total)
  • brasofilo

    (@brasofilo)

    this doesn’t seem qTranslate related…

    what is the php code that prints the logo?
    and where is this CSS is coming from? it is not inside style.css
    .art-logo #imageheader

    Thread Starter almarma

    (@almarma)

    Hi Brasofilo,

    I’m not a programmer but I know a little about it. I’m guessing the code is this:

    <?php if (function_exists('tt_option') && tt_option('header_mods_enable') == 'Yes') { ?>
                            <div class="art-logo">
                            		<div class="headerleft" <?php if(tt_option('header_blog_title') != 'Text') { echo 'id="imageheader"'; } // start header image ?>>
                            				<?php if(theme_get_option('theme_header_show_headline')): ?>
                            			<?php $headline = theme_get_option('theme_'.(is_single()?'single':'posts').'_headline_tag'); ?>
                            			<<?php echo $headline; ?> class="art-logo-name"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></<?php echo $headline; ?>>
                            			<?php endif; ?>
                            					<?php if(theme_get_option('theme_header_show_slogan')): ?>
                            			<?php $slogan = theme_get_option('theme_'.(is_single()?'single':'posts').'_slogan_tag'); ?>
                            			<<?php echo $slogan; ?> class="art-logo-text"><?php bloginfo('description'); ?></<?php echo $slogan; ?>>
                            			<?php endif; ?>

    And the CSS is created by the theme. There, I said it to use that logo image, and the padding info to set the position.

    Does this give you any clue?

    Thanks for your interest!

    brasofilo

    (@brasofilo)

    hi almarma,
    nope, there’s nothing in this php

    what about the css file?

    also, I imagine that in the theme options you are putting the full logo URL, ain’t it?

    Thread Starter almarma

    (@almarma)

    Hi again Brasofilo,

    Sad to read the PHP was not useful :(.
    Yes, the CSS for the logo is created by the theme options. I’ll try to contact the creator of the theme generator I’m using to try to get a fix. Thank you for your follow-up.

    Thread Starter almarma

    (@almarma)

    Hi Brasofilo,

    The developer of the theme engine I’m using for WP has sent me two screenshots of the code used to create the logo image. I hope it helps:

    https://plus.google.com/photos/116856645329367394673/albums/5726848587324224321?authkey=CMae6cTzucKApAE

    Sorry for the images, I hope you (or anyone) can read it using that link.

    Thank you!

    brasofilo

    (@brasofilo)

    hi almarma,
    well, we are getting closer 🙂

    the CSS is built dynamically with PHP, and the logo is being printed here
    <?php echo $logo; ?>

    only problem being now discover where this variable ($logo) is being set, it is surely using some URL construction that’s confusing qTrans

    Thread Starter almarma

    (@almarma)

    Hi Brasofilo,

    Sorry, I sent this posts to the creator of the theme generator and he told me the CSS he sent me yesterday was from another version. He told me the correct one is this:

    https://plus.google.com/photos/116856645329367394673/albums/5726848587324224321/5726848602038590162?authkey=CMae6cTzucKApAE

    Does it helps?

    brasofilo

    (@brasofilo)

    no mate,
    I have to see where the variable $logo is being defined

    this part of the code they are providing doesn’t contains that

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: qTranslate] Artisteer logo only in default language’ is closed to new replies.