The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Tue Jul 29, 2008 5:54 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Jul 29, 2008 5:42 am
Posts: 4
Hi,
I dont want to show the font display i.e. Small Medium and Large.How can I remove that please suggest.

regards
John

_________________
http://www.india-tour-info.info


Top
 Profile  
 
PostPosted: Tue Jul 29, 2008 11:31 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Wed Oct 11, 2006 1:12 pm
Posts: 5162
Location: Kristiansand, Norway
Find code in the index.php file as look like this code ( This code are from Beez ):
Code:
<script type="text/javascript">
            //<![CDATA[
               document.write('<h3><?php echo JText::_('FONTSIZE'); ?></h3><p class="fontsize">');
               document.write('<a href="index.php" title="<?php echo JText::_('Increase size'); ?>" onclick="changeFontSize(2); return false;" class="larger"><?php echo JText::_('bigger'); ?></a><span class="unseen">&nbsp;</span>');
               document.write('<a href="index.php" title="<?php echo JText::_('Decrease size'); ?>" onclick="changeFontSize(-2); return false;" class="smaller"><?php echo JText::_('smaller'); ?></a><span class="unseen">&nbsp;</span>');
               document.write('<a href="index.php" title="<?php echo JText::_('Revert styles to default'); ?>" onclick="revertStyles(); return false;" class="reset"><?php echo JText::_('reset'); ?></a></p>');
            //]]>
            </script>

Delete this code or replace it with this code. Then you comment the code instead for delete.
Code:
   <!--   <script type="text/javascript">
            //<![CDATA[
               document.write('<h3><?php echo JText::_('FONTSIZE'); ?></h3><p class="fontsize">');
               document.write('<a href="index.php" title="<?php echo JText::_('Increase size'); ?>" onclick="changeFontSize(2); return false;" class="larger"><?php echo JText::_('bigger'); ?></a><span class="unseen">&nbsp;</span>');
               document.write('<a href="index.php" title="<?php echo JText::_('Decrease size'); ?>" onclick="changeFontSize(-2); return false;" class="smaller"><?php echo JText::_('smaller'); ?></a><span class="unseen">&nbsp;</span>');
               document.write('<a href="index.php" title="<?php echo JText::_('Revert styles to default'); ?>" onclick="revertStyles(); return false;" class="reset"><?php echo JText::_('reset'); ?></a></p>');
            //]]>
            </script>-->

_________________
Kristian P. Granrud - Global Moderator

Joomla! i Norge => http://www.joomlainorge.no • Twitter => @sone12twitt


Top
 Profile  
 
PostPosted: Wed Aug 06, 2008 4:48 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Aug 06, 2008 4:46 pm
Posts: 3
This worked perfectly! Thanks for posting! :laugh:


Top
 Profile  
 
PostPosted: Fri Oct 09, 2009 9:49 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Oct 04, 2009 1:12 pm
Posts: 4
Hi,
I am a newbie here and working on my first website. I have an addition to this question....I want to MOVE the font display to another area on the front page. I'm using the JA Purity template which currently has a narrow horizontal bar across the top of the page (with the email icon on it). I was hoping to put the font display options on this bar also. Is that possible? If so, I'd really appreciate some help to learn how to do it.

Thanks.


Top
 Profile  
 
PostPosted: Tue Oct 13, 2009 6:28 am 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Wed Oct 11, 2006 1:12 pm
Posts: 5162
Location: Kristiansand, Norway
The answer is Yes. Look up the code as shown in this topic. Cut it and paste it were you want it to display.

_________________
Kristian P. Granrud - Global Moderator

Joomla! i Norge => http://www.joomlainorge.no • Twitter => @sone12twitt


Top
 Profile  
 
PostPosted: Tue Oct 13, 2009 8:59 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Oct 04, 2009 1:12 pm
Posts: 4
I'm sorry, I know nothing about code. I wish I did. I checked the JA Purity index.php file and found nothing that resembles the above code. If I could find the right code, I'd be happy if I could just delete it and not even bother putting it somewhere else on the page. Thanks for your help.


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 4:32 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jul 18, 2011 3:03 pm
Posts: 2
I am facing a similar issue. The index.php file didn't contain the code provided earlier. I am wondering if it has to do something to do with a different version of Joomla? I am currently using v 1.6.

Any help would be appreciated.

Thank you!


Top
 Profile  
 
PostPosted: Mon Jul 18, 2011 4:56 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jul 18, 2011 3:03 pm
Posts: 2
Actually never mind, I figured it out using this forum: "Remove Font Size Settings in Beez2 Template".
JDV- hope this helps you as well!


Top
 Profile  
 
PostPosted: Mon Apr 30, 2012 5:19 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Apr 30, 2012 4:11 am
Posts: 4
Commenting out the parts seen below seemed to work for me. More importantly, it still allows me to set the default size.

function addControls() {
var container = document.id('fontsize');
/*
var content = '<h3>'+ fontSizeTitle +'</h3><p><a title="'+ biggerTitle +'" href="#" onclick="changeFontSize(2); return false">'+ bigger +'</a><span class="unseen">.</span><a href="#" title="'+resetTitle+'" onclick="revertStyles(); return false">'+ reset +'</a><span class="unseen">.</span><a href="#" title="'+ smallerTitle +'" onclick="changeFontSize(-2); return false">'+ smaller +'</a></p>';
container.set('html', content);
*/
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 



Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group