By juliuskleine on
Hello,
I am modifying the BlueMarine template to practice in creating my own theme. I'd like to get rid of the RSS icon.
I could just remove it from the template (page.tpl.php), but would it also be possible to disable it in template.php?
This is what I've tried in template.php, but without any luck
function phptemplate_feed_icon($url, $title) { return ''; }
// or
function mythemename_feed_icon($url, $title) { return ''; }
// or
function randomname_feed_icon($url, $title) { return ''; }
Thanks
Comments
...
Either of the first two functions will achieve what you want, but you'll need to flush drupal's cache before you see the effect... after making the change, go to yoursite/admin/settings/performance and press the 'Clear Cached Data' button. The third function won't do anything.
Hi Roople, Caching is
Hi Roople,
Caching is disabled on my site and clearing the cache didn't help. Below is my template.php file.
I know it's being read by Drupal. Drupal just doesn't run the overrides.
I think I got it. The
I think I got it. The phptemplate_feed_icon() override now works, but I have no clue why it didn't work before. The phptemplate_box() override doesn't work, but I noticed that is because the theme_box() itself isn't called either.
I want to remove the
<h2> -username- </h2>bit from the navigation block. I was under the impression this block is generated by function theme_box($title, $content, $region = 'main'), but it seems I'm wrong.Would you know how to remove the username header from the navigation block?
I'm getting there! Jeez, I've
I'm getting there! Jeez, I've been grepping and searching through theme.inc like a maniac and since I posted this topic I am starting to understand, but still not everything.
I want to remove the username from the user block, which I did by overriding the theme_blocks() function with phptemplate_blocks().
I am now setting the 'subject' field to "" when we are in a user block in the "left" region.
This produces empty
<h2> </h2>tags above the user block. What I'd really like is to lose the<h2></h2>completely. Could you tell me how this works?