How to remove "Enjoy Fresh Fruite" Banner?

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
maanojrakhit
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 115
Joined: Thu Jul 01, 2010 9:11 am
Location: India
Contact:

How to remove "Enjoy Fresh Fruite" Banner?

Post by maanojrakhit » Wed Mar 21, 2012 9:14 pm

How can I remove the "Enjoy Fresh Fruite" Banner? Please help me with the steps.

Before aprroaching you all, I tried the following approach but I may have been on wrong track -

In IE9, I right clicked and selected "View Source". Between line 92 and 96 I found the following code which I suspect may relate to "Enjoy Fresh Fruite" banner as "Search box" related code ends at line 91 and "Breadcrumb" related code begins from line 97. In Firefox 11, using Firebug I found the same.

<div id="header-image">
<img src="/templates/beez5/images/fruits.jpg" alt="Logo" />
</div>
</div><!-- end header -->

Then, I went to Template Manager: Templates >> Options >> Enable Preview >> Beez5 Details, Files & Preview >> Edit main page template (and also) Edit css/template.css --- But could not locate the following codes, just in case deleting <img src="/templates/beez5/images/fruits.jpg" alt="Logo" />
could bring desired result.

Any help that can educate me on this will be much appreciated. Thank you, all.
You do not have the required permissions to view the files attached to this post.

wypaq
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Mon Mar 19, 2012 2:17 pm

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by wypaq » Wed Mar 21, 2012 10:14 pm

The simplest way is to replace the image fruits.jpg with your own jpg image (Same size as the original : 1050 x 180 pixels).
With a file manager or ftp, transfer your own image in the same directory and change the code. if you dont want to change anything in the code, change the name of the original image to Fruit_old.jpg and rename your own image to fruit.jpg.

User avatar
maanojrakhit
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 115
Joined: Thu Jul 01, 2010 9:11 am
Location: India
Contact:

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by maanojrakhit » Fri Mar 23, 2012 8:00 pm

And, which folder will that be?

User avatar
maanojrakhit
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 115
Joined: Thu Jul 01, 2010 9:11 am
Location: India
Contact:

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by maanojrakhit » Fri Mar 23, 2012 8:15 pm

I have located the folder

User avatar
Chamira Athauda
Joomla! Guru
Joomla! Guru
Posts: 504
Joined: Sat Apr 21, 2012 2:15 am
Location: Sri Lanka

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by Chamira Athauda » Mon Apr 30, 2012 12:21 pm

I think this fruit banner only displays if there is no module targeted to template module position-15

The index.php is something like this:

Code: Select all

<div id="header-image">
			<jdoc:include type="modules" name="position-15" />
			<?php if ($this->countModules('position-15')==0): ?>
				<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/fruits.jpg"  alt="<?php echo JText::_('TPL_BEEZ5_LOGO'); ?>" />
			<?php endif; ?>
		</div>
Create a Banner and use the Manager to target it to that postion and the fruit banner should disappear.

unleash_it
Joomla! Ace
Joomla! Ace
Posts: 1311
Joined: Wed Nov 05, 2008 11:28 pm

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by unleash_it » Sat Jun 02, 2012 6:31 pm

hello dear maanojakhit

many thanks for raisin this question. Tanks for doing this. I am pretty sure that many many of the joomla-fans want to do exactly this step.
maanojrakhit wrote:And, which folder will that be?
well in the next posting you said that you found out the folder. Do me a favour and let the world know this. Otherwise this thread is pretty useless tot the world. If you do not publish your insights then we will rest on our own.

So please let us know where the folder is!?

thx in advance
greetings...



@ crojoa
- where do you find the follwing code - which index-file did you menton in your message !?

Code: Select all

<div id="header-image">
         <jdoc:include type="modules" name="position-15" />
         <?php if ($this->countModules('position-15')==0): ?>
            <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/fruits.jpg"  alt="<?php echo JText::_('TPL_BEEZ5_LOGO'); ?>" />
         <?php endif; ?>
      </div>
Create a Banner and use the Manager to target it to that postion and the fruit banner should disappear.
regards un-leash,
a big fan for ++ 11 years now: With Joomla you can easily create and extend your website: see the site, that offers you ideas & modules - extensions.joomla.org - it lists over 4000 extensions

unleash_it
Joomla! Ace
Joomla! Ace
Posts: 1311
Joined: Wed Nov 05, 2008 11:28 pm

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by unleash_it » Sat Jun 02, 2012 6:49 pm

for any body who looks for a good solution... ifound some thing great & useful:

imanickam states in this thread

http://forum.joomla.org/viewtopic.php?f=675&t=685062

I believe that you are referring to the file fruits.jpg that is located in the directory /templates/beez5/images.

This image is referenced in the following line of code.

Code: Select all

<img src="<?php echo $this->baseurl ?>/templates/beez5/images/fruits.jpg" alt="<?php echo JText::_('TPL_BEEZ5_LOGO'); ?>" />
In these situations, you could use the tool FireBug to inspect elements and view the css entries.

The tool FireBug that is available in browsers such as FireFox and Chrome could be used for this purpose. With FireBug you can inspect an element in a web page and find out its css entries and in which file the entries are located. You could even change the css entries to see how it affects the look and feel of your site. Once you are satisfied you could incorporate the changes in the actual file.

Review the document http://docs.joomla.org/Tutorial:Using_F ... la_Website for more information about how to use FireBug.
end of cit


thx to the great imanickam

greetings
regards un-leash,
a big fan for ++ 11 years now: With Joomla you can easily create and extend your website: see the site, that offers you ideas & modules - extensions.joomla.org - it lists over 4000 extensions

User avatar
Chamira Athauda
Joomla! Guru
Joomla! Guru
Posts: 504
Joined: Sat Apr 21, 2012 2:15 am
Location: Sri Lanka

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by Chamira Athauda » Sun Jun 03, 2012 3:18 pm

unleash_it wrote:
@ crojoa
- where do you find the follwing code - which index-file did you menton in your message !?

Code: Select all

<div id="header-image">
         <jdoc:include type="modules" name="position-15" />
         <?php if ($this->countModules('position-15')==0): ?>
            <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/fruits.jpg"  alt="<?php echo JText::_('TPL_BEEZ5_LOGO'); ?>" />
         <?php endif; ?>
      </div>
Create a Banner and use the Manager to target it to that postion and the fruit banner should disappear.

The file in question is the index.php file of the Beez 5 template. Each template has its own index.php which sets up the template look & module positions.

You could just put a small transparent gif within a custom HTML component in there and make it go away. I prefer that to deleting template code. You could of course just comment that php code out too.

Sorry for not making it clear.

unleash_it
Joomla! Ace
Joomla! Ace
Posts: 1311
Joined: Wed Nov 05, 2008 11:28 pm

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by unleash_it » Sun Jun 03, 2012 10:48 pm

hello dear coruja

many thanks for sharing! Your explanations are of good help!

Valid source of information for all Joomla-Fans!! Keep up your great support!

greetings ;-)
regards un-leash,
a big fan for ++ 11 years now: With Joomla you can easily create and extend your website: see the site, that offers you ideas & modules - extensions.joomla.org - it lists over 4000 extensions

blongro
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jan 16, 2013 1:06 pm

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by blongro » Wed Jan 16, 2013 1:09 pm

Hello!
How can i hide the banner image in other pages than home page?
I mean that the image being shown only in home page.
Thanks!

wypaq
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Mon Mar 19, 2012 2:17 pm

Re: How to remove "Enjoy Fresh Fruite" Banner?

Post by wypaq » Tue Feb 19, 2013 4:48 pm

Go to the module manager and select the banner module. At the bottom of the page, you can select on which pages the module will be displayed.


Locked

Return to “Templates for Joomla! 2.5”