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 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

Google Ads Conversion Tracking Through Magento Platform:

Spread the love Google Ads Conversion Tracking Through

Object Pool Pattern in Magento2

Spread the love What is Object Pool Pattern in Magento 2 An

JENKINS

Spread the love JENKINS Introduction and Installation

Virtual Type and Type

Spread the love Virtual type is one of the most common

Customize the length of Input field

Spread the love Sometimes we need to change the limit the

How to Add Custom Tab on Admin Dashboard and Count Website Total Visitor in Magento 2?

Spread the love In this blog we’ll see How to Add Custom

bluethinkinc Blogs