Hello
Remove copyright using below xml code
<referenceBlock name="copyright" remove="true"/>
And create the
<referenceContainer name="footer">
<block class="Magento\Cms\Block\Block" before="-" name="footer_content">
<arguments>
<argument name="block_id" xsi:type="string">footer-content</argument>
</arguments>
</block>
</referenceContainer>new block and assign it
Hope it will help you.
If work then gives kudos or mark as solution.
@Rakesh Jesadiya wrote:You can use below xml,
<referenceContainer name="footer" remove="true"/>if still error let me know.
Hi Rakesh, this command will remove the footer block but not copyright. However, I tracked the copyright and found that it is generated by /public_html/vendor/magento/module-theme/view/frontend/templates/html/copyright.phtml. I modifed the content in copyright.phtml and achieved what I want. By deleting the content in this file, the copyright information will also be deleted but the background stays there. But what I want to achieve is to change the wording of copyright, so it works for me. Hopefully in next version, Magento fixes this issue then I don't have to do this again. Thanks for your help!
You can just remove copyright by below way,
<referenceBlock name="copyright" remove="true"/>
By default change content of copyright from backend, your content will be changed though error is displayed.
Hi WZ_OZES,
Please Note : This is magento 2.2.4 know issue and below fix is just a temporary fix. You should not directly change Magento core file instead (override or create a plugin)
Temporary work around for this will be to change: Magento\Email\Model\AbstractTemplate.php
public function setForcedArea($templateId)
{
if ($this->area) {
throw new \LogicException(__('Area is already set'));
}
$this->area = $this->emailConfig->getTemplateArea($templateId);
return $this;
}Replace above code with:
public function setForcedArea($templateId)
{
if (!isset($this->area)) {
$this->area = $this->emailConfig->getTemplateArea($templateId);
}
return $this;
}