Joomla · Joomla 2.5 · Joomla Tutorials

Joomla 2.5 Tutorial – How to Remove the “Close Info” “Open Info” in Beez 20

Joomla 2.5 TutorialsDisable the Collapsable Right Menu – “Open Info”/”Close Info” Link in Beez20 or Beez 5 Template.

Now this is a strange addition to the Beez20 template.  Strange in that they added this feature and didn’t make it customizable for people to easily remove this link.  Perhaps in the future, they can make this into a module and allow this functionality to be easily added or removed.  I personally don’t like that my right menu is collapsible either and when Areruu emailed me to ask me to help, I went searching for an answer.

*** Revised on April 12, 2012 – Domagoj mentioned in a comment that this was not working so I tested it out and yes in fact it wasn’t. So I made a revision to 3C as you will see below.    Delete the code you find in 3c instead of commenting it out.

If you add a module to a position on the right side, i.e. position-6, position-8, position-3, this ‘Close Info’ or ‘Open Info’ link will display above the right column.  (see Beez_20 module positions here).  See screenshot below:

Joomla 2.5 - Close Info/Open Info
Joomla 2.5 - Close Info/Open Info

I want to permanently display my right side menu without the option for users to use the “Close Info” or “Open Info” button.  I was able to successfully remove this option and below is an overview of the steps:

  • Find the Template Manager – Customize Template in Template Manager
  • Edit the Template Master File in Template Manager
  • Code Changes to Remove ‘Close Info’/’Open Info’
Joomla 2.5 Change to the Templates Tab
1. Joomla 2.5 Change to the Templates Tab

1.  Find the Template Manager – Customize Template

  • Login to your Joomla 2.5 Administrator backend
  • Click  on Extensions, Template Manager
  • Switch to the ‘Templates’ tab

2.  Edit the Template Master File in Template Manager

Joomla 2.5 Edit Beez_20 Details & Files
2. Joomla 2.5 Edit Beez_20 Details & Files
  • In the Templates Manager: Templates
  • Scroll down and click on ‘Beez_20 Details and Files’
  • Under Template Master Files, Click on ‘Edit main Page templates’
Joomla 2.5 Edit Template Page Template HTML
2. Joomla 2.5 Edit Template Page Template HTML

3.   Code Changes to Remove ‘Close Info’/’Open Info’

In the “Template Manager: Edit”, Editing file “index.php” in template “beez_20” – You will comment out code in 3 different places.
Joomla 2.5 - Remove Close/Open Info Links on Right Menu
3a, 3b. Joomla 2.5 - Remove Close/Open Info Links on Right Menu
a.  Search for code:

var altopen='<?php echo JText::_(‘TPL_BEEZ2_ALTOPEN’, true); ?>’;
var altclose='<?php echo JText::_(‘TPL_BEEZ2_ALTCLOSE’, true); ?>’;

  • Add this code to comment out the lines – use  /**  and **/ in red
/** 3a Commented to Remove the Right Collapsible Menu “Close Info/Open Info” Links – Elaine CmsMind.com Feb 16, 2012
var altopen='<?php echo JText::_(‘TPL_BEEZ2_ALTOPEN’, true); ?>’;
var altclose='<?php echo JText::_(‘TPL_BEEZ2_ALTCLOSE’, true); ?>’;
**/
b.  Search for code:
var rightopen='<?php echo JText::_(‘TPL_BEEZ2_TEXTRIGHTOPEN’, true); ?>’;
var rightclose='<?php echo JText::_(‘TPL_BEEZ2_TEXTRIGHTCLOSE’); ?>’;
  • Add this code to comment out the lines – use /**  and **/  in red
/** 3b Commented to Remove the Right Collapsible Menu “Close Info/Open Info” Links – Elaine CmsMind.com Feb 16, 2012
var right open='<?php echo JText::_(‘TPL_BEEZ2_TEXTRIGHTOPEN’, true); ?>’;
var rightclose='<?php echo JText::_(‘TPL_BEEZ2_TEXTRIGHTCLOSE’); ?>’;
**/
Joomla 2.5 - Remove Close Info, Open Info Links on Right Menu
3c. Joomla 2.5 - Remove Close Info, Open Info Links on Right Menu

c.  Search for code:

<div id=”close”>
<a href=”#” onclick=”auf(‘right’)”>
<span id=”bild”>
<?php echo JText::_(‘TPL_BEEZ2_TEXTRIGHTCLOSE’); ?></span></a>
</div>

  • Remove the code above  – Revised Apr 12, 2012
  • Revised on April 12, 2012 Add this code to comment out the lines – use <!–  and  –> in red 

<!–  3c Commented to Remove the Right Collapsible Menu “Close Info/Open Info” Links – Elaine CmsMind.com Feb 16, 2012
<div id=”close”>
<a href=”#” onclick=”auf(‘right’)”>
<span id=”bild”>
<?php echo JText::_(‘TPL_BEEZ2_TEXTRIGHTCLOSE’); ?></span></a>
</div>

–>

  • Click on ‘Save & Close’

Now you can refresh your Joomla 2.5 website and the option to Close/Open the right menu is gone.   The Right menu permanently displays and is no longer collipsable.

Hope that helps you.

Thanks,

Elaine

62 thoughts on “Joomla 2.5 Tutorial – How to Remove the “Close Info” “Open Info” in Beez 20

  1. Nice explanation, do you know how to set this module always open and then delete the OPEN/CLOSE button. In some cases the right positions 6,8,3 just go missing when I do as you say.

    Thanks!

  2. How about a variant that keeps the open/close info but the default is to have it hidden (closed)? i’ll look at where you are editing this to see if it is obvious. Well rummaged around and tried a few things and basically it turned it all off (actually an easier way to turn it off, it seems is through one simple addition:

    Find this, which is very near the top of the template file:
    // check modules
    $showRightColumn = ($this->countModules(‘position-3’) or $this->countModules(‘position-6’) or $this->countModules(‘position-8’));

    either replace it or add a line right after it (which makes it easier to restore) to set it to zero (not alpha o):

    $showRightColumn = 0;

    1. Hi Bradh,
      When I added the
      $showRightColumn = 0;
      it permanently removed the right column. Not sure if that was the intent. Is there an easier way to always show the right column? But thanks for the tip, I will add it to my posts.
      Thanks for your visit,
      Elaine

  3. Podziękowania z Polski… Bardzo mi pomogłaś. Będę na forach zamieszczał link do Twojej porady, aby pomóc innym

    Dziękuję

    1. (used google translate to understand…..and used google translate to write a response back, sorry if it doesn’t make sense)
      Nie ma sprawy. Cieszę się, że mój post pomógł ci.
      Dziękujemy za wizyty,
      elaine

  4. hi,
    many, many thanks for this post. It really helped me.
    Keep running, swiming, cycling and helping the community !
    Cheers,
    jc

  5. Hello, I did all this, and now when I put the position 8,3, or 6 i don’t see the module

    The module does not show in the RIGHT column / position

    But I want to have RIGHT position for my module, if I change it back to previous, the I get open / close s*** again.

    Can you help, so I can put module position right – OPEN ALL THE TIME !!!!

    1. Hi Domagoj,
      Sorry about that. I made a revision to the post and tested it out. It works now. Give it a try and let me know if you have problems.
      Thanks for your visit,
      elaine

      1. Hi Elaine,

        I encounter the same problem with beez5 template.
        I follow your instruction, the revised one.
        I could not set module for position 6,8 & 3.
        thanks in advance

        1. Hi Aung,
          What Joomla version are you using? can you send me an email to your website? I will send you an email if i have more questions.
          thanks for your visit,
          elaine

  6. hello elaine
    i did try your method but everything just disappeared(the whole right column)
    what is wrong
    thanks

  7. Hi Elaine,
    thanks for a great tutorial! I’d like to have the right column opened on the frontpage but initially closed when you are on any other page. I fiddled around but can’t make it work. Can you help me? Many thanks!
    Kilian

  8. Hi Elaine,
    This is what I’m looking for..
    I follow your tutorial and its work!!
    Thank you

    *Sorry for my bad English

  9. thnxx i used ur tip
    but the size of “font option ” on the right corner of my website is “undefined” now what to do ?? please help me !!

  10. Oh my goodness! Impressive article dude! Thank you, However I am encountering problems with your RSS.
    I don’t understand why I cannot join it. Is there anybody having similar RSS problems? Anybody who knows the solution can you kindly respond? Thanks!!

  11. Hi Elaine

    Great tips! However, are we going to have to go through the same procedure, every time Joomla is upgraded (especially the template?)

    I only ask because this is what I have found in the past.

    1. Just did an upgrade… and yes, had to go through this procedure again. I don’t know how to stop that happening, anyone else?

  12. Very good tutorial
    I was adding modules to the right side and scratching my head wondering why they didn’t show up.
    Then I saw the little open info link.
    It isn’t a very useful feature.
    One thing I think would be good to mention in your tutorials is to do a backup before making major
    code changes. What I do is just copy all the code and paste it into notepad (just in case)

  13. Thank you Elaine. This was a nice solution and easy to follow. Its great that we have people like you to help us that are not so far along the learning curve. Please keep it coming.

    Persephone

  14. This is very helpful information, but the Beez2 template for Joomla 2.5 does not have this code
    in the index.php file. I have the same problems with trying to remove this and also trying to remove the space on the upper part of page near header. Any suggestions?

  15. My partner and I absolutely love your blog and find nearly all of your post’s to be just what I’m looking for.
    Do you offer guest writers to write content available for you?

    I wouldn’t mind writing a post or elaborating on a number of the subjects you write related to here. Again, awesome blog!

    1. Hi Eleanore,
      That’s great! Sure I welcome and appreciate guest writers! Send me an email on what you would like to write about and we can go from there. elaine @ Cmsmind.com
      Thanks,
      Elaine

  16. The reason your commented 3c didn’t work is because it’s supposed to be instead of . You have it correct in the image, but not in text.

  17. thank you very much for this post – it drove me crazy for a few days . turns out i just had to click on “open info” (i’d closed it without knowing it). i’m going to make sure no one else does that on my site!!

  18. Thanks – spent ages looking for a way to get rid of these. PS the commenting out worked for me – I used “//”for each line of the php variables and then for the HTML div

  19. If possible can please also post the same tutorial for JOOMLA 3.0 + BEEZ3?

    That would be very fine – I enjoy your tutorials very much.

    Thx!

  20. or edit file:
    beez3\css\position.css

    line:
    /* ++++++++++++++ button for closing right column ++++++++++++++ */

    #close {
    margin-right: 0;
    text-transform: uppercase;
    }

    #close span {
    position: absolute;
    right: 20px;
    z-index: 10000;
    top: 5px;
    line-height: 1.5em;
    margin-top:20px;
    padding: 5px;
    font-size: 0.0em a {
    display: block;
    overflow: hidden
    }

    #close > a:hover span {
    background: #095197
    }

  21. /* ++++++++++++++ button for closing right column ++++++++++++++ */

    #close {
    margin-right: 0;
    text-transform: uppercase;
    }

    #close span {
    position: absolute;
    right: 20px;
    z-index: 10000;
    top: 5px;
    line-height: 1.5em;
    margin-top:20px;
    padding: 5px;
    font-size: 0.0em

    ADD LAST LINE !!! :))) “” font-size: 0.0em””

  22. or edit file:
    beez3\css\position.css

    line:
    /* ++++++++++++++ button for closing right column ++++++++++++++ */

    #close {
    margin-right: 0;
    text-transform: uppercase;
    }

    #close span {
    position: absolute;
    right: 20px;
    z-index: 10000;
    top: 5px;
    line-height: 1.5em;
    margin-top:20px;
    padding: 5px;
    font-size: 0.0em

    ADD LAST LINE !!! :))) “” font-size: 0.0em””

  23. Hi Elaine,
    I got the same problem as Alex:

    “Alex July 18, 2013 at 8:57 am
    Nice insturctions. But can you give any for beez3 in joomla 3.1?”

    I want to get rid of the info button AND gain the whole space for content and column. By deleting the last part as you said the button already vanished but the content is still squeezed.

    In “index.php” I can´t find any line as in
    a.
    var altopen=’’;
    var altclose=’’;
    oder b.
    var rightopen=’’;
    var rightclose=’’;

    I must commit I cannot image a line that might match the function – I can only guess and show you:


    If this isn´t the right part just let me know and i will try to show you another one.

    Thank you so much!

Leave a Reply to Guy Cancel reply

Your email address will not be published. Required fields are marked *

Captcha Captcha Reload