Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8532747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:47:09+00:00 2026-06-11T09:47:09+00:00

I have a Joomla 2.5 multilanguage website and I want to have a different

  • 0

I have a Joomla 2.5 multilanguage website and I want to have a different banner on the English version and on the French version. I know that I can duplicate the template and assign them to the specific language but I am doing a lot of modification in the CSS and I don’t want to double the changes!
I did add this condition in my index.php but only the first banner will display on the EN and the FR website.

<?php if ($this->language = 'en-gb') : ?>
<div style="background-image: url(/templates/mega_calibra/images/bannierEN.png);"></div>
<?php elseif ($this->language = 'fr-fr') : ?>
<div style="background-image: url(/templates/mega_calibra/images/bannierFR.png);"></div>
<?php endif; ?>`

What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:47:10+00:00Added an answer on June 11, 2026 at 9:47 am
    1. Basic PHP error

      if ($this->language == ‘en-gb’)

    2. I think $this->language will return en-GB and fr-FR (note the uppercase) so check with a var_dump() on $this->language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Afternoon, I have a Joomla! template that keeps throwing up a pop up
I have a Joomla-Based website and as far as I know, the only way
I have a joomla project, and would like to to know how I can
We have a Joomla website which we want to copy over to another host
I have a Joomla website that I've written a custom shopping cart component for.
I have a Joomla 1.5 site. I have articles in my site with different
I have a Joomla Website located at http://www.MikeSilvis.com , and upon going to the
I have a joomla website and I use community builder for user registration and
I have a Joomla 1.0 website running on a shared host which I don't
The question pretty much says it all. I have a joomla website and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.