border: dashed 2px #707070 ; border-style reference: https://kovart.github.io/dashed-border-generator/
Author: Jerin
How to format date in magento using phpframe wrok?
<?php /* @noEscape */ $date = $block->formatDate($_order->getCreatedAt()); $newdate = new DateTime($date); $strip = $newdate->format(‘d-m-Y’); echo $strip; ?>
How to update the dashboard content in magento sidebar
Translator for Magento 2, admin can easily search and translate any string from the store. foldername/theme/i18n/en_US.csv
How to add Goole Maps To our page?
Easiest Method to add google Maps using embed coded I frame Generator. Using this embebed url , select our location and genarate embebed code. Eg: Embedded Location of Jobin&Jismi. https://maps.google.com/maps?width=600&height=400&hl=en&q=jobin%20and%20jismi&t=&z=14&ie=UTF8&iwloc=B&output=embedhttps://mcpenation.com
How to get current category in magento2?
How to Set Background Position
After adding a background image and stopping it from repeating, we are able to further control how it looks within the background of the tag by improving its position. We’ll use the background-position property to do this. The selector takes in two values. The first one is for the horizontal position, or x-direction (how far… Continue reading How to Set Background Position
How to Add a New CMS Page in Magento 2
Step 1: Add a New Page On the Admin Panel, Content > Elements > Pages. Click on Add New Page. Under the Page Information section: Fill out the Page Title, the meta data that shows in the title bar and tab of the browser. Fill out a URL Key for the page, added to the… Continue reading How to Add a New CMS Page in Magento 2
How to add custom font in Magento 2
Add font files to your local theme directory. For example, app/design/frontend/<your_vendor_name>/<your_theme_name>/web/fonts. To add external fonts, configure the font app/design/frontend/<your_vendor_name>/<your_theme_name>/web/css/source/_typography. The mixin generates the CSS, which includes the font. The following example shows how to generate CSS for the Open Sans font in the Blank theme: @font-face {font-family: ‘Open Sans’;src: url(‘../fonts/opensans/light/opensans-300.eot’);src: url(‘../fonts/opensans/light/opensans-300.eot?#iefix’) format(’embedded-opentype’), url(‘../fonts/opensans/light/opensans-300.woff2’) format(‘woff2’), url(‘../fonts/opensans/light/opensans-300.woff’)… Continue reading How to add custom font in Magento 2
How to add a slider using magento page builder?
Step 1:Login to your admin. Step 2:Navigate to Content > Elements > Pages and press on it. Step 3: Go to your homepage where you want to add a slider and then click on the edit button as the image below. Step 4: Expand Content and go to Edit with Page Builder button and click on… Continue reading How to add a slider using magento page builder?
How to create a new Block in Magento?
Go to Content > Elements > Blocks and press the Add New Block button. Enable the CMS Block. Set the CMS Block Title and Identifier. Assign CMS Block to the Store View it will be displayed on.