FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 7 posts ] 
 
Author Message
 Post subject: Remove items from default Theme
 Post Posted: Mon Mar 07, 2011 6:47 pm 
Offline

Joined: Mon Mar 07, 2011 6:38 pm
Posts: 3
Hello,

I would like to remove the following items from the Default theme - Top: Home and Site Map icons; Left: Newsletter and RSS. I attempted to remove them from main.php without a desirable result. They were gone but the page formatting was off. Is there a "correct" way of removing them?

Thanks,

Damon


Top 
 Profile  
 
 Post subject: Re: Remove items from default Theme
 Post Posted: Mon Mar 07, 2011 7:09 pm 
Offline
Project Manager

Joined: Wed Nov 25, 2009 9:40 am
Posts: 421
The process is correct. However, it looks like that you removed something in a wrong way if design brake. Make sure that you're deleting only relevant elements and delete it fully. I pasted those code parts you need to delete.

Top
Code:
      <div class="icons">
        <a title="<?php echo htmlspecialchars($parametersMod->getValue('standard', 'configuration','main_parameters','name')); ?>" href="<?php echo $site->generateUrl(); ?>"><img src="<?php echo BASE_URL.THEME_DIR.THEME; ?>/images/icon_home.gif" alt="home"/></a>
        <a title="<?php echo htmlspecialchars($parametersMod->getValue('administrator', 'sitemap','translations','sitemap')); ?>" href="<?php echo $site->generateUrl(null, 'sitemap'); ?>"><img src="<?php echo BASE_URL.THEME_DIR.THEME; ?>/images/icon_sitemap.gif" alt="sitemap" /></a>
      </div>


Left
Code:
    <div class="box newsletter">
<?php
         echo $site->getZone('newsletter')->generateRegistrationBox();
         
         echo "\n".'      <div class="separator"></div>'."\n";

         echo "\n".'      <a class="rss" href="'.$site->getZone('rss')->generateRssLink().'">'.$parametersMod->getValue('administrator', 'rss', 'translations', 'rss').'</a>'."\n";
?>
      <div class="clear"><!-- --></div>
    </div>


Top 
 Profile  
 
 Post subject: Re: Remove items from default Theme
 Post Posted: Mon Mar 07, 2011 7:40 pm 
Offline

Joined: Mon Mar 07, 2011 6:38 pm
Posts: 3
Hello,

Thanks for the quick reply.

If I remove the code you suggested the footer info (Copyright and Powered by info) move to the upper right of the screen- below the search box.

Do I need to remove or correct any other info?

Thanks,

Damon


Top 
 Profile  
 
 Post subject: Re: Remove items from default Theme
 Post Posted: Mon Mar 07, 2011 7:53 pm 
Offline

Joined: Mon Mar 07, 2011 6:38 pm
Posts: 3
Please disregard the above. I started with a clean install and all is good.

Thanks!

Damon


Top 
 Profile  
 
 Post subject: Re: Remove items from default Theme
 Post Posted: Sun May 29, 2011 8:40 pm 
Offline

Joined: Sun May 29, 2011 7:47 pm
Posts: 11
Audrius wrote:
The process is correct. However, it looks like that you removed something in a wrong way if design brake. Make sure that you're deleting only relevant elements and delete it fully. I pasted those code parts you need to delete.

Top
Code:
      <div class="icons">
        <a title="<?php echo htmlspecialchars($parametersMod->getValue('standard', 'configuration','main_parameters','name')); ?>" href="<?php echo $site->generateUrl(); ?>"><img src="<?php echo BASE_URL.THEME_DIR.THEME; ?>/images/icon_home.gif" alt="home"/></a>
        <a title="<?php echo htmlspecialchars($parametersMod->getValue('administrator', 'sitemap','translations','sitemap')); ?>" href="<?php echo $site->generateUrl(null, 'sitemap'); ?>"><img src="<?php echo BASE_URL.THEME_DIR.THEME; ?>/images/icon_sitemap.gif" alt="sitemap" /></a>
      </div>


Left
Code:
    <div class="box newsletter">
<?php
         echo $site->getZone('newsletter')->generateRegistrationBox();
         
         echo "\n".'      <div class="separator"></div>'."\n";

         echo "\n".'      <a class="rss" href="'.$site->getZone('rss')->generateRssLink().'">'.$parametersMod->getValue('administrator', 'rss', 'translations', 'rss').'</a>'."\n";
?>
      <div class="clear"><!-- --></div>
    </div>


Does this also get removed from page loading sources or just hides it?


Top 
 Profile  
 
 Post subject: Re: Remove items from default Theme
 Post Posted: Mon May 30, 2011 6:41 am 
Offline
Project Manager

Joined: Wed Nov 25, 2009 9:40 am
Posts: 421
If you don't require these functions to be executed, they won't be loaded during page rendering. Did I answer your question?


Top 
 Profile  
 
 Post subject: Re: Remove items from default Theme
 Post Posted: Mon May 30, 2011 5:55 pm 
Offline

Joined: Sun May 29, 2011 7:47 pm
Posts: 11
Yes, thank you.


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

Board index » Development » Help requests


 
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

Search for:
Jump to:  
cron