Categories

Ausgewählte Vorlagen

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

Elina Webb März 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

Joomla Templates Premium
Dieser Eintrag wurde um Joomla! Tutorials geschrieben und joomla, link, logo, url markiert. Bookmarken Sie den permalink.

Submit a ticket

Sollte Ihre Frage durch die Tutorials nicht ausreichend beantwortet worden sein, benutzen Sie bitte den folgenden Link, um sich an unser Beratungsteam (Support) zu wenden. Wir bieten Ihnen unsere Hilfe und Unterstutzung an. 24 Stunden am Tag, 7 Tage die Woche!
Ticket Einrichten