V
V
Vladimir2017-02-28 10:37:27
JavaScript
Vladimir, 2017-02-28 10:37:27

How to make a logo unclickable in Joomla without using php?

Hello. The question is how to implement the non-clickability of the logo. That is, there is no link on the main page, but on the internal ones. Curve site on joomla 3. THERE somehow this logo is connected through the modules, and it is built into the top menu. I made a crutch with jQuery

var log = jQuery.noConflict();
log(document).ready(function(){
if (location.href == "http://www.mysite.ru")
  {
      log(".logo.menu.").html('<img src="/img/logo.png" alt="Главная">');
  }

only works in chrome. Not in other browsers.
With the help of php do not register. Maybe there are other ways. js or something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2017-02-28
@webirus

Don't do bullshit.
Create a copy of the module, correct the code (without reference).
Link to the same position:
1. For the main page - without a link.
2. In addition to the main page - with a link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question