I set magento 2 luma theme for entire site if customer not login after customer login need set ultimo theme i have installed ultimo theme i am able to set
by using fallowing line
$objectManager->get(\Magento\Framework\View\DesignInterface::class)->setDesignTheme('Infortis/pawan', 'frontend');
all working fine but when I write custom CSS it not loading it generating in pub folder but not loading I have place custom CSS Magento_Theme/layout/default_head_blocks.xml
my XML file
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/font-awesome.min.css" />
<css src="css/test.css" />
</head>
</page>
but in frontend when I login all phtml files and other files loading but CSS and js not loading any idea how
in magento 1 by using below code I can set easily I want same in magento 2 any idea
Mage::getDesign()->setArea('frontend')->setPackageName('tricore')->setTheme('pawan');
.