How to get some important URL in .phtml page

Blog
Spread the love

If you need to get some important URL in .phtml file of magento 2 then you can use this.

(1.) How to get URL of home page?

Example:

(2.) How to get URL of static CSS/JS files

Example:

(3.) How to get URL of static pub/media or media URL()

Example:

(4.) How to get some important URL in the WYSIWYG editor

If you need to get some important URL in WYSIWYG editor of magento 2 then you can use this

(i) How to get URL of home page:

Example:

(ii) How to get URL of static CSS/JS files:

Example:

(iii) How to get URL of static pub/media or mediaUrl():

Example:

bluethinkinc_blog

bluethinkinc_blog

2022-09-19

0

Leave a Reply

Your email address will not be published. Required fields are marked *

Find More Blogs

How to Add a Custom Tab to the Customer Order Detail Page in Magento 2

Spread the love Adding a custom tab to the Order Detail

Exception Handling in Java

Spread the love Introduction – Exception:An unwanted

How to add custom less file in Magento2

Spread the love Source files *.css included into layout

Spring Boot Microservices

Spread the love Microservices architecture has become

Implementation of WireMock for better testing

Spread the love WireMock is a flexible and powerful tool

Magento 2: How to selected default option in configurable options?

Spread the love Configurable products in Magento 2 allow

How To Implement Simple JWT Authentication in Django Rest Framework

Spread the love We’ll learn how to use simple JWT

Optimizing Search: Integrating Elasticsearch in Django Applications

Spread the love What is Elasticsearch? Elasticsearch is a

How to create Customer Segments

Spread the love In Magento 2, “customer

Proxy Design Pattern and Requisition List in Magento 2

Spread the love Requisition List in Magento 2 Requisition

bluethinkinc Blogs