<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Magento 2 Archives - Cody Paste</title>
	<atom:link href="https://www.codypaste.com/category/cms/magento/magento-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codypaste.com/category/cms/magento/magento-2/</link>
	<description>THE WEB PLAYGROUND</description>
	<lastBuildDate>Tue, 13 Mar 2018 12:20:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.codypaste.com/wp-content/uploads/2022/12/cropped-codypaste-32x32.png</url>
	<title>Magento 2 Archives - Cody Paste</title>
	<link>https://www.codypaste.com/category/cms/magento/magento-2/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Add a static image on PHTML page and CMS Blocks : Magento2</title>
		<link>https://www.codypaste.com/add-a-static-image-on-phtml-page-and-cms-blocks-magento2/</link>
					<comments>https://www.codypaste.com/add-a-static-image-on-phtml-page-and-cms-blocks-magento2/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Tue, 27 Feb 2018 08:48:57 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[image in magento]]></category>
		<category><![CDATA[image in phtml file]]></category>
		<category><![CDATA[image url in css]]></category>
		<category><![CDATA[image url in magento]]></category>
		<category><![CDATA[phtml image]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=661</guid>

					<description><![CDATA[<p>image url Syntax is ok for both static block and phtml, But make sure that when you write this code in static block [crayon-69ac2c4205d2a733273867/] on front end it looks like http://localhost/magento2new/pub/static/frontend/Magento/luma/en_US/images/slide-bg.jpg Where Magento/luma is package name and theme name, you can replace with your package and theme name So you have to take care for slide-bg.jpg is exist in pub/static/frontend/Magento/luma/en_US/images directory. In your case, [crayon-69ac2c4205d3e439113150/] Syntax seems ok , but in &#8230; </p>
<p class="link-more"><a href="https://www.codypaste.com/add-a-static-image-on-phtml-page-and-cms-blocks-magento2/" class="more-link">read more<span class="screen-reader-text"> "Add a static image on PHTML page and CMS Blocks : Magento2"</span></a></p>
<p>The post <a href="https://www.codypaste.com/add-a-static-image-on-phtml-page-and-cms-blocks-magento2/">Add a static image on PHTML page and CMS Blocks : Magento2</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<table>
<tbody>
<tr>
<td class="votecell">
<div class="vote"></div>
</td>
<td class="answercell">
<div class="post-text">
<p>image url Syntax is ok for both <code>static block</code> and <code>phtml</code>, But make sure that when you write this code in static block</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;span class=&quot;tag&quot;&gt;&amp;lt;img&lt;/span&gt; &lt;span class=&quot;atn&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;{{view url=&quot;&lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;images&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;slide-bg&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;jpg&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;}}&quot;&lt;/span&gt; &lt;span class=&quot;atn&quot;&gt;alt&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot;&gt;&quot;test&quot;&lt;/span&gt; &lt;span class=&quot;tag&quot;&gt;/&amp;gt;&lt;/span&gt;</pre><p>on front end it looks like</p>
<p><a href="http://localhost/magento2new/pub/static/frontend/Magento/luma/en_US/images/slide-bg.jpg" rel="noreferrer">http://localhost/magento2new/pub/static/frontend/Magento/luma/en_US/images/slide-bg.jpg</a></p>
<p>Where <code>Magento/luma</code> is <code>package</code> name and <code>theme</code> name, you can replace with your <code>package</code> and <code>theme</code> name</p>
<p>So you have to take care for <code>slide-bg.jpg</code> is exist in</p>
<p><code>pub/static/frontend/Magento/luma/en_US/images</code> directory.</p>
<p><strong>In your case,</strong></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;span class=&quot;pln&quot;&gt;&amp;lt;img src='&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;php echo $this&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;getViewFileUrl&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;'images/footer-logo.png'&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;pun&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;' alt=&quot;Demo&quot;&amp;gt;&lt;/span&gt;</pre><p>Syntax seems ok , but in frontend It looks like</p>
<p><a href="http://localhost/magento2new/pub/static/frontend/Magento/luma/en_US/images/footer-logo.png" rel="noreferrer">http://localhost/magento2new/pub/static/frontend/Magento/luma/en_US/images/footer-logo.png</a></p>
<p>So you have to make sure that <code>footer-logo.png</code> exist in</p>
<p><code>pub/static/frontend/Magento/luma/en_US/images</code> directory.</p>
<p>And don&#8217;t forgot about <strong><code>"[quotation marks]</code></strong></p>
<p><strong>In CSS:</strong></p>
<p><code>background: url('{{view url="images/menu-button-of-three-lines.svg"}}');</code></p>
</div>
</td>
</tr>
</tbody>
</table>
<p>The post <a href="https://www.codypaste.com/add-a-static-image-on-phtml-page-and-cms-blocks-magento2/">Add a static image on PHTML page and CMS Blocks : Magento2</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/add-a-static-image-on-phtml-page-and-cms-blocks-magento2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Magento2 : How can override vendor/module-catalog to magento default theme?</title>
		<link>https://www.codypaste.com/magento2-how-can-override-vendor-module-catalog-to-magento-default-theme/</link>
					<comments>https://www.codypaste.com/magento2-how-can-override-vendor-module-catalog-to-magento-default-theme/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Feb 2018 13:00:49 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[category page]]></category>
		<category><![CDATA[product category page]]></category>
		<category><![CDATA[product page]]></category>
		<category><![CDATA[vendor to theme]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=658</guid>

					<description><![CDATA[<p>You can override all files from vendor to our theme using below method. Goto vendor\magento\module-catalog\view\frontend Copy all folders and files to app\design\frontend\{Your_vendor}\{Theme_name}\Magento_Catalog Clear your cache using below command. php bin/magento cache:clean Refresh your page you can see files from your theme.</p>
<p>The post <a href="https://www.codypaste.com/magento2-how-can-override-vendor-module-catalog-to-magento-default-theme/">Magento2 : How can override vendor/module-catalog to magento default theme?</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You can override all files from vendor to our theme using below method.</p>
<p>Goto <code>vendor\magento\module-catalog\view\frontend</code></p>
<p>Copy all folders and files to</p>
<p><code>app\design\frontend\{Your_vendor}\{Theme_name}\Magento_Catalog</code></p>
<p>Clear your cache using below command.</p>
<p><code>php bin/magento cache:clean</code></p>
<p>Refresh your page you can see files from your theme.</p>
<p>The post <a href="https://www.codypaste.com/magento2-how-can-override-vendor-module-catalog-to-magento-default-theme/">Magento2 : How can override vendor/module-catalog to magento default theme?</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/magento2-how-can-override-vendor-module-catalog-to-magento-default-theme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Error “Cannot read contents from file..” when changing themes from admin panel</title>
		<link>https://www.codypaste.com/error-cannot-read-contents-from-file-when-changing-themes-from-admin-panel/</link>
					<comments>https://www.codypaste.com/error-cannot-read-contents-from-file-when-changing-themes-from-admin-panel/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 25 Jan 2018 09:06:27 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Magento 2]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=655</guid>

					<description><![CDATA[<p>Please copy the folder [crayon-69ac2c420730f841390178/] to [crayon-69ac2c420731f735569567/]</p>
<p>The post <a href="https://www.codypaste.com/error-cannot-read-contents-from-file-when-changing-themes-from-admin-panel/">Error “Cannot read contents from file..” when changing themes from admin panel</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Please copy the folder</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;span class=&quot;pln&quot;&gt;\vendor\magento\module&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;email\view\frontend\email&lt;/span&gt;</pre><p>to</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;span class=&quot;pln&quot;&gt;\vendor\magento\module&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;email\view\adminhtml\email\.&lt;/span&gt;</pre><p></p>
<p>The post <a href="https://www.codypaste.com/error-cannot-read-contents-from-file-when-changing-themes-from-admin-panel/">Error “Cannot read contents from file..” when changing themes from admin panel</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/error-cannot-read-contents-from-file-when-changing-themes-from-admin-panel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create a Magento 2 Theme?</title>
		<link>https://www.codypaste.com/how-to-create-a-magento-2-theme/</link>
					<comments>https://www.codypaste.com/how-to-create-a-magento-2-theme/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 25 Jan 2018 09:04:12 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Magento 2]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=653</guid>

					<description><![CDATA[<p>Copy of luma theme &#160; The following steps describe how to create New Magento 2 theme from the existing Magento Luma theme and its implementation. Create a new Vendor folder inside app/design/frontend/NewVendorName (ex: DCKAP). The folder will be like this – app/design/frontend/DCKAP. Create theme folder inside your Vendor folder app/design/frontend/DCKAP/theme-new Next, navigate to vendor\magento\theme-frontend-luma Copy entire folder and files inside &#8230; </p>
<p class="link-more"><a href="https://www.codypaste.com/how-to-create-a-magento-2-theme/" class="more-link">read more<span class="screen-reader-text"> "How to Create a Magento 2 Theme?"</span></a></p>
<p>The post <a href="https://www.codypaste.com/how-to-create-a-magento-2-theme/">How to Create a Magento 2 Theme?</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1>Copy of luma theme</h1>
<p>&nbsp;</p>
<p>The following steps describe how to create New Magento 2 theme from the existing Magento Luma theme and its implementation.</p>
<ul>
<li>Create a new Vendor folder inside <i>app/design/frontend/NewVendorName </i>(ex: DCKAP). The folder will be like this – <i>app/design/frontend/DCKAP</i>.</li>
<li>Create theme folder inside your Vendor folder <i>app/design/frontend/DCKAP/theme-new</i></li>
<li>Next, navigate to <i>vendor\magento\theme-frontend-luma</i></li>
<li>Copy entire folder and files inside “theme-frontend-luma” into your theme folder (i.e.) <i>app/design/frontend/DCKAP/theme-new/</i></li>
<li>Edit <i>app/design/frontend/DCKAP/theme-new/</i><em>registration.php</em> file and change as following ‘frontend/Magento/luma’ to ‘frontend/DCKAP/new’.</li>
<li>Next Edit <i>app/design/frontend/DCKAP/theme-new/</i><em>theme.xml</em> file and change the title as per your identification.</li>
<li>Once done save and close the file.</li>
</ul>
<div class="de1"><code><span class="sc3"><span class="re1">&lt;theme</span> <span class="re0">xmlns:xsi</span>=<span class="st0">"http://www.w3.org/2001/XMLSchema-instance"</span><span class="re0">xsi:noNamespaceSchemaLocation</span>=<span class="st0">"urn:magento:framework:Config/etc/theme.xsd"</span><span class="re2">&gt;</span></span></code></div>
<div class="de1"><code>   <span class="sc3"><span class="re1">&lt;title<span class="re2">&gt;</span></span></span>Dckap New<span class="sc3"><span class="re1">&lt;/title<span class="re2">&gt;</span></span></span></code></div>
<div class="de1"><code>   <span class="sc3"><span class="re1">&lt;parent<span class="re2">&gt;</span></span></span>Magento/blank<span class="sc3"><span class="re1">&lt;/parent<span class="re2">&gt;</span></span></span></code></div>
<div class="de1"><code>   <span class="sc3"><span class="re1">&lt;media<span class="re2">&gt;</span></span></span></code></div>
<div class="de2"><code>       <span class="sc3"><span class="re1">&lt;preview_image<span class="re2">&gt;</span></span></span>media/preview.jpg<span class="sc3"><span class="re1">&lt;/preview_image<span class="re2">&gt;</span></span></span></code></div>
<div class="de1"><code>   <span class="sc3"><span class="re1">&lt;/media<span class="re2">&gt;</span></span></span></code></div>
<div class="de1"><code><span class="sc3"><span class="re1">&lt;/theme<span class="re2">&gt;</span></span></span></code></div>
<div></div>
<div></div>
<div>
<ul>
<li>Finally, clear var/cache and var/page_cache before logging into Magento 2 Admin.</li>
<li>Navigate to Stores-&gt;Configuration-&gt;Design-&gt;Design Theme.</li>
<li>Select your newly created theme “Dckap New”. Save the configuration.</li>
</ul>
<ul>
<li>Refresh the frontend and you will be able to view your design from newly allocated theme.</li>
</ul>
<ul>
<li>To make sure please view ‘Page Source’ which will display the CSS and js URL path as per your registration.php configuration file.</li>
</ul>
<p>Source: http://www.dckap.com/blog/creating-magento-2-theme/</p>
</div>
<p>The post <a href="https://www.codypaste.com/how-to-create-a-magento-2-theme/">How to Create a Magento 2 Theme?</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/how-to-create-a-magento-2-theme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Magento 2 icons not showing on frontend</title>
		<link>https://www.codypaste.com/magento-2-icons-not-showing-on-frontend/</link>
					<comments>https://www.codypaste.com/magento-2-icons-not-showing-on-frontend/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 24 Jan 2018 10:31:47 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Magento 2]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=651</guid>

					<description><![CDATA[<p>admin backend icon fonts missing &#160; Open up app/etc/di.xml find the path [crayon-69ac2c4208009225828941/] and replace it with [crayon-69ac2c4208022897603767/] Note: Remove entire files and folder under pub/static except .htaccess</p>
<p>The post <a href="https://www.codypaste.com/magento-2-icons-not-showing-on-frontend/">Magento 2 icons not showing on frontend</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1>admin backend icon fonts missing</h1>
<p>&nbsp;</p>
<p>Open up <code>app/etc/di.xml</code> find the path</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;span class=&quot;typ&quot;&gt;Magento&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;\Framework\App\View\Asset\MaterializationStrategy\Symlink&lt;/span&gt;</pre><p>and replace it with</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;span class=&quot;typ&quot;&gt;Magento&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;\Framework\App\View\Asset\MaterializationStrategy\Copy&lt;/span&gt;</pre><p>Note: Remove entire files and folder under <strong>pub/static</strong> except <strong>.htaccess</strong></p>
<p>The post <a href="https://www.codypaste.com/magento-2-icons-not-showing-on-frontend/">Magento 2 icons not showing on frontend</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/magento-2-icons-not-showing-on-frontend/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
