Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
i want to have a text and a button in home page when customer is not logged in and when he is logged in this block (div) should be hidden so how to proceed? any help please
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $objectManager->get('Magento\Customer\Model\Session');
// customer login
// customer not login
Required, but never shown
12 days ago