Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

MinusBaseline Theme removing responsive menu when embed comments

This discussion is related to the MinusBaseline addon.

Open your file /themes/minusbaseline/class.minusbaselinethemehooks.php

Replace this: $sender->addAsset('Content', anchor('n', url('#'), 'Hamburger'), 'Hamburger');

For this:

$dominio= $_SERVER['HTTP_HOST'];
$url = "http://" . $dominio. $_SERVER['REQUEST_URI'];
if(strpos( $url, "/discussion/embed" ) === false) {
$sender->addAsset('Content', anchor('n', url('#'), 'Hamburger'), 'Hamburger');
}

Sign In or Register to comment.