home

Search A2Z 24

Satz24 - Questions


1 answers
1.1K views

How to add css class on body in Magento2

I am trying to add a css class on body tag but not able to find any file, from where the body tag is rendered.

I need to add one css class on body tag in PLP such as others are coming >

1 answers
706 views

CSS how to vertically align text within a pseudo element

I have created a pseudo element to sit over an div element:

<div class="column featured">Test ...</div>

The CSS is as follows:

.column {
    width:200px;
    height:400px;
   

1 answers
0.9K views

Magento2 - How to show a block content on homepage

How to show a block content on homepage?

After install magento2 without sample data, I choose 'Magento Luma' theme and add 'Home Page Block' block and copy the code from the sample

1 answers
1.3K views

Magento: Get store contact telephone

Seems like it should be simple, but cant find a solution anywhere.
I need to output the Store Contact Telephone number,
which is in Store Informtion in the admin. System -> Configuration

2 answers
878 views

Calling getParams() in Magento2

How to achieve the below getParams() in Magento2?

$params = Mage::app()->getRequest()->getParams();

3 answers
1.3K views

Need to Initialization js after ajax response magento 2

I am working on ajax concept to load product but when i got response below script not initialize

<script type="text/x-magento-init">
        {
            "[data-role=tocart-form],

1 answers
10.5K views

Owl Carousel, navigation disabled after reaching first/last item.

I'm trying to use owl carousel.

I want to disable the navigation after it reach first/last item,

for example by adding "disabled" class in navigation then disable it via css.

Is it

1 answers
719 views

Magento 2: Get image url in template file

How I can Add a static image on PHTML page in Magento2?

In Magento 1.x it was possible using

$this->getSkinUrl('images/xyz.jpg')

1 answers
853 views

How can you encode a string to Base64 in JavaScript?

I have a PHP script that can encode a PNG image to a Base64 string.

I'd like to do the same thing using JavaScript. I know how to open files, but I'm not sure how to do the encoding?
I'm not

1 answers
0.9K views

Disable LESS-CSS Overwriting calc()

Right Now I'm trying to do this in CSS3 in my LESS code:

width: calc(100% - 200px);

However, when LESS compiles it is outputting this:

width: calc(-100%);

Is there a way to tell

×