Categories

Featured templates

Joomla 3.x. How to assign a custom link for logo

Elina Webb March 3, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial shows how to assign a custom link for logo in Joomla 3.x template.

Joomla 3.x. How to assign a custom link for logo

As the default setting, the link for logo is Home page. In this tutorial we will change this link to a custom link.

  1. Log into FTP/File Manager, navigate to templates/themeXXXX, open index.php file to edit:

    Joomla_3.x_How_to_assign_a_custom_link_for_logo-1

  2. In index.php file search for the word logo and look for these codes:

      
                <div id="logo" class="span<?php echo $this->params->get('logoBlockWidth'); ?>">
                    <a href="<?php echo JURI::base(); ?>">
                    <?php if(isset($logo)) : ?>
    					<img src="<?php echo $logo;?>" alt="<?php echo $sitename; ?>">
    					<h1><?php echo $sitename; ?></h1>
                    <?php else : ?><h1><?php echo wrap_chars_with_span($sitename); ?></h1><?php endif; ?>
    					<span class="hightlight"></span>
                    </a>
                </div> 
    	

    from:

    	<a href="<?php echo JURI::base(); ?>">
    	

    replace:

    	<?php echo JURI::base(); ?>
    	

    with the new link for logo, for example: http://www.demolink.org

    Joomla_3.x_How_to_assign_a_custom_link_for_logo-2

    Click Save Changes and refresh your site, click on the logo to see that it links to the new http://www.demolink.org link now.

You can also open index.php file via the Admin Panel :

  1. In your Joomla Admin panel go to Extensions -> Template Manager:

    Joomla_3.x_How_to_assign_a_custom_link_for_logo-3

  2. Select Templates, then ThemeXXXX (the activated theme):

    Joomla_3.x_How_to_assign_a_custom_link_for_logo-4

  3. Open index.php file from the left hand side list and start editing:

    Joomla_3.x_How_to_assign_a_custom_link_for_logo-5

    Note: If index.php file can not be opened and edited, please check this tutorial: Joomla 3.x. Troubleshooter. CSS files are missing in template manager.

Feel free to check the detailed video tutorial below:

Joomla 3.x. How to assign a custom link for logo

Themes for Joomla
This entry was posted in Joomla! Tutorials and tagged joomla, link, logo, url. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket