[themes] Adding custom link tags to page head
Carl Wiedemann
carl.wiedemann at gmail.com
Mon Apr 25 17:25:31 UTC 2011
Consider using one of the following
Drupal 6
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_set_html_head/6
Drupal 7
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_html_head/7
On Mon, Apr 25, 2011 at 9:54 AM, Bruce Whealton <bruce at futurewavedesigns.com
> wrote:
> Thanks, I would not have thought about putting a theme in the header.
> Anyway, I didn’t mean to say I am not comfortable editing tpl files. I
> haven’t written too many functions to run inside of template.php but I
> probably could. I guess I might have sounded ignorant by asking if I should
> or needed to put the absolute link inside the $header variable, when I could
> just hard code it before or after the $header variable appears inside the
> page.tpl.php and it would just appear before or after it.
>
> Thanks,
>
> Bruce
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Bruce Whealton, Owner Future Wave Designs
>
> FOAF: http://whealton.info/BruceWhealton1/foaf.rdf
>
> Vcard: http://whealton.info/BruceWhealton1/brucewhealtonvcard.html
>
> Web Design and Development http://FutureWaveDesigns.com
>
> http://futurewavedesigns.com/wordpress/
>
> Web Technology wiki: http://futurewavedesigns.com/w/
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>
>
>
>
> *From:* themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] *On
> Behalf Of *Amit Vyas
> *Sent:* Sunday, April 24, 2011 12:04 PM
> *To:* A list for theme developers
> *Subject:* Re: [themes] Adding custom link tags to page head
>
>
>
> If you are not comfortable editing the tpl files, you can go and crate the
> custom block and show it in to the header. With this it will be added in
> $header and will be displayed in the area you want.
>
> On Sun, Apr 24, 2011 at 9:28 PM, Bruce Whealton <
> bruce at futurewavedesigns.com> wrote:
>
> Hello all,
> I've been learning how to code themes including using the .info
> file and the page.tpl.php and node.tpl.php and the variables that can be
> set. So, I want to add a link in the head section of the page, above the
> body tag. There is the variable $header that seems to handle all of this.
> This is set in the template.php file. So what is the best practice for
> hardcoding a link. I want to link to a foaf file. So, I'm not sure, should
> I go into the template.php file and edit the $header variable or can I just
> add the link tag to the page.tpl.php right after the call to display the
> variable or maybe right after?
> Thanks in advance for any help,
> Bruce
>
> Sent from my iPad
> Future Wave Web Design/Development 919-636-5809
> Http://FutureWaveDesigns.com
> Web Technology and Computing Blog:
> Http://futurewavedesigns.com/wordpress/
>
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
>
>
>
>
> --
> Cheers,
> Amit Vyas
>
> ________________________________________________________________________________
> Email : vyasamit2007 at gmail.com Skype : vyasamit2004
> Mobile : +91 993-040-1490 Phone : +91-022
> 428-884-07
>
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20110425/9849a2cc/attachment.html
More information about the themes
mailing list