Skip to content

Commit 8a8a263

Browse files
authored
Merge pull request #2 from timneutkens/master
Add website code to body class
2 parents 5523cd4 + ec08ddc commit 8a8a263

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Plugin/StoreCodeBodyClassPlugin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public function __construct(
2727
}
2828

2929
public function execute(Observer $observer){
30-
$storeCode = $this->storeManager->getStore()->getCode();
30+
$store = $this->storeManager->getStore();
31+
$storeCode = $store->getCode();
32+
$websiteCode = $store->getWebsite()->getCode();
3133
$this->config->addBodyClass($storeCode);
34+
$this->config->addBodyClass($websiteCode);
3235
}
3336
}

0 commit comments

Comments
 (0)