I'm developing a new sub-theme of Zen and I'm having difficulty removing the feed_icons div from the bottom of the page.

I've removed the following from zen/zen/page.tpl.php but the div continues to display. Any ideas on what to do?

<?php if ($feed_icons): ?>
          <div class="feed-icons"><?php print $feed_icons; ?></div>
        <?php endif; ?>

Comments

sumeet.pareek’s picture

You have removed the lines from the zen core. It is HIGHLY recommended that you do not do that. Just remove the lines from the zen sub-theme that you are developing.

simon_ives’s picture

What in the sub-theme should I change? Am I supposed to make a copy of page.tpl.php and place it in my sub-theme directory?

I copied over the STARTERKIT directory, edited the relevant files, and copied over the layout-fixed.css, print.css, template.php, and theme-settings.php from /zen/zen (as per here).

I know there shouldn't be any need to modify the core zen files, hence my question here.

simon_ives’s picture

So as not to alter the core zen files I've just used visibility:hidden; in my sub-theme's style sheet as a work around. The div is still generated, just not displayed.

.feed-icons /* The links to the RSS or Atom feeds for the current list of content */
  {
    visibility: hidden;
  }
sumeet.pareek’s picture

You need to do the same changes (removing lines of code that print the feed icon) to the page.tpl.php file in the subtheme's directory, and not to the page.tpl.php file in Zen core.

In future if you wanna switch theme and want to display the feed icon, you dont have to revert anything :)

Hiding content by changing CSS properties is a workaround that I would not recommend. Eventually you end up with so many of them.