get_bloginfo doesnt be centered

my get_bloginfo doesnt be centered.Here is the codes: <!– header –> <header class=”header clear” role=”banner”> <!– logo –> <div class=”logo”> <a href=”<?php echo home_url(); ?>”> <!– svg logo – toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script –> <img src=”<?php echo get_template_directory_uri(); ?>/img/logo.svg” alt=”Logo” class=”logo-img”> </a> </div> <div class=”strip”></div> <div class=”slogan”><?php echo get_bloginfo($show=’description’); ?></div> <!– /logo –> <!– nav –> <nav class=”nav”…

how to write SoapClient request which has basic auth in it?

Actually I need to implement SoapClient in Drupal 8. Following XML is Request: <soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:typ=”http://www.example.com/common/ServiceRequestHeader_v1_0/types” xmlns:typ1=”http://www.example.com/customer/CustomerViewRequest_v1_0/types”> <soapenv:Header> <typ:serviceRequestHeader> <applicationCredential> <ID>USERNAME</ID> <credential>*****</credential> </applicationCredential> <transactionModel> <synchronousRequest>true</synchronousRequest> </transactionModel> <userCredential> <ID>RITESH</ID> </userCredential> </typ:serviceRequestHeader> </soapenv:Header> <soapenv:Body> <typ1:serviceRequest> <requestPreamble> <companyCode>IN</companyCode> <customerNumber>12345678</customerNumber> </requestPreamble> </typ1:serviceRequest> </soapenv:Body> </soapenv:Envelope> I have tried following code for the same but it is failing and I am…

How to safe a product via PHP

I’m trying to safe a new product with variants via php. $product = \Craft::$app->elements->createElement(\craft\commerce\elements\Product::class); $product->typeId = 1; $product->enabled = true; $product->enabledForSite = true; $variant = \Craft::$app->elements->createElement(\craft\commerce\elements\Variant::class); $variant->sku = ‘2304978’; (plus other custom fields) $product->setVariants([$variant]); \Craft::$app->elements->saveElement($product); This code results in an exception. Invalid product ID: 412122 #0 /path/to/craft/vendor/craftcms/commerce/src/elements/Variant.php(895): craft\commerce\elements\Variant->getProduct() #1 /path/to/craft/vendor/yiisoft/yii2/base/Model.php(350): craft\commerce\elements\Variant->beforeValidate() #2 /path/to/craft/vendor/craftcms/cms/src/services/Elements.php(536): yii\base\Model->validate() #3…