home

Search A2Z 24

Satz24 - Questions


1 answers
12 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
64 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
118 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
106 views

Calling getParams() in Magento2

How to achieve the below getParams() in Magento2?

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

3 answers
198 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
2381 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
209 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
229 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
363 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

1 answers
589 views

Magento 2 - Keep Product Image Aspect Ratio

I'm working with Magento 2 Category Page.

 

But I couldn't know how to keep the product image aspect ratios.

 

In magento 1.x, I can get the image src to use below code.

 

Reveal Modal Goodness

This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.

This is just a simple modal with the default styles, but any type of content can live in here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi quis sem vel enim eleifend tristique. Etiam tincidunt faucibus pharetra.

×