Shape 5

Joomla Templates => Arthur - Club => : addrss December 20, 2016, 07:52:47 AM



: S5 Accordion Menu & Logo link
: addrss December 20, 2016, 07:52:47 AM
1. If published at the same time two modules S5 Accordion Menu on the same page, then stop working both modules. How to fix it?
2. How to make, that link in logo will open in a new tab?


: Re: S5 Accordion Menu & Logo link
: mikek December 20, 2016, 08:27:07 PM
Hello,

1. You cannot run two on the same page or the javascript will conflict. You can have two on the same site, but they can't be on the same page.

2. In the index.php file find:

<?php if ($s5_logo_type == "css") { ?>
                     <img alt="logo" src="<?php echo $s5_directory_path ?>/images/s5_logo.png" onclick="window.document.location.href='<?php echo $LiveSiteUrl; ?>'" />
                  <?php } ?>

Change it to:


<?php if ($s5_logo_type == "css") { ?>
<a href="" target="_blank">
                     <img alt="logo" src="<?php echo $s5_directory_path ?>/images/s5_logo.png" />
[/url]
                  <?php } ?>



In the href="" section enter any url you want.


: Re: S5 Accordion Menu & Logo link
: addrss December 21, 2016, 12:20:42 AM
Maybe it is better:

:
                        <?php if ($s5_logo_type == "css") { ?>
<a href="<?php echo $this->baseurl ?>" rel="nofollow">
                     <img alt="logo" src="<?php echo $s5_directory_path ?>/images/s5_logo.png" /></a>
                  <?php ?>