Drupal adaptive theme logo url links to outside site

I have drupal site that uses the adaptive theme. Now the link in the logo is directed to "/" (to root of my site) but I would like to change it so that it would dirent to outside site (www.domain.com). How can I do this?

This where the logo image is created in template.preprocess-page.inc but I have no clue where the URL gets to the logo. Any advie would be apprerciated!

$vars['logo_alt_text'] = check_plain(variable_get('site_name', '')) .' '. t('logo'); $vars['logo_img'] = $vars['logo'] ? '<img src="'. check_url($vars['logo']) .'" alt="'. $vars['logo_alt_text'] .'" title="'. t('Home page') .'"/>' : ''; $vars['linked_site_logo'] = $vars['logo_img'] ? l($vars['logo_img'], '<front>', array('attributes' => array('rel' => 'home'), 'title' => t('Home page'), 'html' => TRUE)) : ''; $vars['linked_site_name'] = $vars['site_name'] ? l($vars['site_name'], '<front>', array('attributes' => array('rel' => 'home'), 'title' => t('Home page'))) : '';

-------------Problems Reply------------

This line sets the logo as a img link:

$vars['linked_site_logo'] = $vars['logo_img'] ? l($vars['logo_img'], '<front>', array('attributes' => array('rel' => 'home'), 'title' => t('Home page'), 'html' => TRUE)) : '';

With $vars['logo_img'] being the image, and <front> being the url for the link. l() is a function built into Drupal. Documentation on l()

Also you may wish to read more about preprocess functions: Setting up variables for use in a template (preprocess and process functions)

Category:drupal Views:0 Time:2011-06-29

Related post

  • PHP: How to add a logo with url link on a web player? 2010-05-06

    I am doing a project in PHP in which Users can upload videos to the website.Visitors can watch the videos in the website. There will be a logo on the web player.when the visitor clicks on the logo it has to take him to a new page.I don't know how to

  • Stationery CSS, url link color 2014-05-06

    I am creating some custom stationery and need to change the color of a URL link from the default. I have viewed the stationery file in both a browser and in word'07 and the colour is set correctly, however when viewed in outlook'07 it defaults back t

  • how to attach url link to an image? 2009-12-17

    I am creating an website. It contains videos of different places. Now my problem is i need integrate an image on that with url link. when user taps on that link it has to go to that link. Even user downloads the video also it has to go to that link (

  • Need driver URL link for Startech USB2VGAE2 2014-03-13

    Need driver URL link for Startech USB2VGAE2. I cannot access their site (www.startech.com) for some reason. If someone could go there and send me this driver link, it would be great! Thank you... Jason --------------Solutions------------- Hi, 1. Do y

  • Clickable url link in NSTextFieldCell inside NSTableView? 2009-04-19

    I have a NSAttributedString that I'm using in a NSTextFieldCell. It makes several clickable url links and puts a big NSAttributedString inside the NSTextFieldCell. Whenever I am viewing the NSTextFieldCell normally and it's highlighted, I cannot clic

  • Create a List (url links) and deploy it as a feature 2009-11-20

    I'm very new to SharePoint, so apologies if this sounds a little basic. I want to create a List in SharePoint that is just purely URL links, but then make it available to every site collection that we will create. Once this list is created, I need it

  • How can I future-proof my client URL links to my server for future HTTPS migration? 2009-12-14

    How can I future-proof my client URL links to my server for future HTTPS migration? I have a .net winforms client talking to my ruby on rails backend. If I move the website in the future I want to make sure that my API links from the client don't hav

  • How does one batch edit URL links in a Sharepoint LIst 2009-12-15

    A site directory in my site collection on serverA has a list of all the sites in the site collection in a lists called Sites ( of course). Each listing has a URL field that will link you directly to the site in the list. I backedup/restored this site

  • Add url link or image(with url link) to mail app - iphone 2010-01-30

    NSString *url = [NSString stringWithString: @"mailto:?subject=Wallpapers%203d%20App&body=Have%20fun%20with%20this%20unique%20wallpaper%20app"]; [[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]]; I am using this code to open

  • XML url link in Flash 2010-02-08

    I am new to XML and am having a small problem in Flash. I have a number of buttons. Each of these buttons need to open up a different URL which is in a xml file (I have added only one button for now (banstead), as I wasn´t sure how to add more). My X

  • read url link from excel file with C# 2010-02-19

    I have the following code: private DataSet GetDataSet(string tableName) { DbCommand cmd = GetConnection().CreateCommand(); cmd.CommandText = "SELECT data FROM " + tableName; DbDataAdapter da = GetDataAdapter(); da.SelectCommand = cmd; DataSet ds = ne

  • Copy an external mp3 url link into a form and then uploaded to own server 2010-02-25

    Is there a way to copy an external mp3 url link, paste it in a form and once submitted it will be uploaded to own server using php? --------------Solutions------------- Take a look at cURL. You can use it to grab a remote file. You will still need th

  • iPhone:How to give URL link to the Text? 2010-03-27

    I have Text(http://www.mywebsite.com) in a view, in which i need to provide URL link, so that clicking on that one will take user to the browser. How do i achieve it? Please provide your suggestions. Thank you very much. --------------Solutions------

  • How to get redirecting url link with php from bit.ly 2010-04-30

    I'm trying to get url links to those bit.ly redirects. I've tried to open bit.ly links with file_get_contents but it already gets content from redirected site, but how to get its url? --------------Solutions------------- I was unaware of the bit.ly A

  • how to generate sef urls manually without clicking the links in joomla site 2010-06-15

    we have sh404 sef component installed in my site.when we click any of the link on my site a sef url willl automatically generate and insert in to the databese.but i want to generate all the available sef urls for my site with out clicking all the lin

  • PHP CURL saving multiple XML url links? 2010-06-21

    I'm trying to save 3 XML url links to write to local xml cache copy of them. But 2 of the XML url links with parameters passed after ? aren't saving at all ? only allteams.xml gets saved into multicache folder while other 2 urls don't get saved ? the

  • Clicking URL Link on TTStyledTextLabel doesn't push a new page 2010-07-21

    hey. When I am clicking URL link on TTStyleTextLabel, it doesn't push a new page. But when I looked at the TTCatalog, they don't have any method in the styledtexttestcontroller which seem to open up the webpage. So how does TTCatalog do that? How can

  • how to write url link in views 2010-08-16

    I want to write url link in views, and then return to template. views.py for platform in platform_list: if (fail_case.platform==platform): html_front = "<a href=/home/%s/%s/%s>" % (build, run, fail_case.testResult_id) html_back = "</a>" b

  • What's the easiest way to put a URL link into a UITableViewCell 2010-08-23

    I have some text in a UITableViewCell that has a URL link to it. I'd like to make the URL blue and, when clicked, open up the Safari Browser. Some of suggested that I use a UIWebView within the UITableViewCell, but I've not seen a simple implementati

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.158 (s). 11 q(s)