Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html]

Denotes questions related to HTML code in Magento.

0
votes
0answers
20 views

magento 1.9 product tabs html for mobile

i want to update tabs html for mobile in magento 1.9 but i cant find the html where tabs html in genrated? if any one know please help me $this->getChildHtml($_tab['alias']
0
votes
1answer
27 views

Magento2 production mode error magento2.1

I got below error on my category pages and product pages after setting minify html to yes: Parse error: syntax error, unexpected ‘<‘, expecting end of file” magento2 production mode What should ...
1
vote
2answers
29 views

Overriding shipping.html file in custom module

I am trying to override shipping.html file to my custom module, but it's not working for me. requirejs-config.js var config = { paths: { 'Magento_Checkout/template/shipping': "...
1
vote
1answer
20 views

Unknown UL LI tag broke the layout

I got this annoying issue: that's unwanted spaces thats caused by unknown HTML: My question is how to remove that unwanted annoying html (UL/LI) from home page? Thanks
1
vote
1answer
25 views

Find the block class instantiated into a phtml file

I need to modify a block class called in a phtml file, this is the customer.phtml file: <?php // @codingStandardsIgnoreFile ?> <?php if($block->customerLoggedIn()): ?> <li ...
1
vote
0answers
23 views

How to make new column through foreach loop in html table

I want to make one column with three rows after that second and third column should be made. With this code, only one column is being created. $i = 1; foreach($array as $a => $v) { if(empty($...
0
votes
1answer
8 views

How can I erase the “also please add” text in this website

I'm trying to edit the home page of this website and until now I have been able to find most of the .phtml files but I haven't been able to find the file or menu that has this text at the end of the ...
3
votes
2answers
33 views

How to move Magento 2 Search bar to be centered

Here is my current search bar: And here is my expectation: I still don't understand about how to make centered search bar like that ? here is my html (from inspect element): <header class="page-...
2
votes
2answers
24 views

find the ul tag inside header

I need to find the template or layout file that contains this ul tag: <ul class="header links"> <li class="greet welcome" data-bind="scope: 'customer'"> <!-- ko if: ...
1
vote
1answer
34 views

Cannot find the register link phtml file

I enabled the path template suggestion and It doesn't show the path for the 'Create an account' link. Reading the html home page source I've saw these tags: <ul class="header links"> <li ...
0
votes
0answers
15 views

Magento 2 Email custom font working preview but not working in Email

I'm following This https://devdocs.magento.com/guides/v2.0/frontend-dev-guide/templates/template-email.html But not solved
1
vote
1answer
25 views

Remove class on div from empty.xml layout

I am running Magento 2.2. I have custom HTML I want to add to a CMS page. After navigating to the page where this HTML resides, the content is automatically displayed inside a div with class page-...
1
vote
2answers
32 views

How can you get the config value in html

I want to know if you can get the config value to html I have a class which provides the value for config Not sure how to get this checked in HTML I have been looking at configproviderinterface
1
vote
0answers
22 views

Magento 2.2.8 not saving HTML head

Just upgraded to 2.2.8. Trying to add something into HTML head section, but it does not go to the front-end. At the same time enabling "Display Demo Store Notice" did work. Tried cleaning & ...
0
votes
1answer
29 views

Magento 2 : How to get static block as html content on frontpage?

As we know that we're able to render html content up in front as using below code echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('identifier')->toHtml(); ...
1
vote
1answer
79 views

Magento 2 - Translation dictionaries query regarding using html

I need to figure out whether I use the html in Magento 2 translation dictionaries For example I have this translation dictionaries file in which there are many relevant messages \vendor\magento\...
0
votes
0answers
20 views

magento 1,8 - 1,9 - html - cms -problem

My problem: magento 1.8 in page or block if i write: <a href="#"> <div class="class_1"> demo test </div> </a> and click "save" and i recheck the cose the html become <...
4
votes
1answer
162 views

Allow HTML tags in Bank Tranfer Payment instructions

Default Magento payment method "Bank Tranfer" does not allow using HTML tags in Instructions text. How can I change that?
0
votes
0answers
61 views

How to override minicart html with custom phtml?

I override content.html using /app/design/frontend/Altius2/Jasani/Magento_Checkout/web/template/minicart/content.html When I change stuff in this it changes but I can't use PHP because it's an HTML ...
2
votes
0answers
8 views

Magento 2 HTML minfi / delete comments

I want to automatically delete comments in the programm code, mostly HTML. Like: Best would be a Plug-ins which leaves the comments as long its deactivated. We are using Magento Speed from Potato ...
0
votes
1answer
37 views

How to call theme image in .html file

I want to call a image <myvendor/mytheme>/web/images/image.png in \Magento_Checkout\web\template\minicart\content.html can anyone let me know how can i call image in <img src=""/> tag ?...
1
vote
1answer
45 views

Help with adding script codes between <head></head> in success.phtml

Hope someone can help me with this. It's very easy to do I bet, I'm just not used to magento yet. I'm adding Google Ads to my magento (1.9).. I need to add this script code: <!-- Event snippet ...
0
votes
0answers
7 views

Tried to add encoded email addresses on a Page but Magento decoded them

In order to avoid email harvesters, I tried to add an encoded email address using this service http://wbwip.com/wbw/emailencoder.html. I pasted the encoded email in the HTML view in a Magento page, ...
0
votes
1answer
29 views

getChildHtml() in Magento 1

In one of my .phtml file I got below line. How can I edit the ChildHtml ? <?php echo $this->getChildHtml('product_additional_data') ?>
0
votes
2answers
121 views

onclick="document.getElementById('showme')

I am trying to make this work in Magento, but Magento changes the html and my boss hates it when I want to change anything using cPanel. So I need an option using the dashboard in Magento <table ...
1
vote
1answer
43 views

How to change welcome text in Magento 1.7?

I'm trying to change the color of the welcome text, and I have found the place( Configure-design) to change the actual text, but no way to change the color. Any ideas about where to look?
0
votes
2answers
126 views

Make image link in static block

I have this static block: <div class="interior-block-slide" style="background-image: url({{media url='wysiwyg/typostores/typologancee/images/home07/vertical-blinds-full- frontend.jpg'}});"> <...
0
votes
0answers
18 views

Css .class element has padding: @cpanel-home… where is this reference?

I would like to edit the padding of this class, but it references elsewhere. Where is this reference stored, and how do I edit the reference figures?
0
votes
2answers
168 views

Where is the code that the output <html lang=“en”> determines in Magento 2.2.5

Can someone indicate me where I can find the code that the lang attribute for the html tag determines? I'd like to make the lang attribute to show <html lang="en-US"> instead of <html lang="...
0
votes
0answers
41 views

Parsing html code with html error problem

I am getting this kind of exceptions in my exception.log . i have no idea where it comes from. main.CRITICAL: DOMDocument::loadHTML(): Unexpected end tag : br in Entity, line: 1 {"exception":"[...
2
votes
2answers
36 views

Overriding Magento 2 static adminhtml backend isn't working

I've got file : "vendor/magento/module-ui/view/base/web/templates/grid/listing.html" after deploy this file create: "pub/static/adminhtml/Magento/backend/en_US/Magento_Ui/templates/grid/listing....
1
vote
1answer
74 views

Magento 2.2: Where is the block of template html?

I need to add a conditional by checking the information of an custom attribute, for example if it is 'S' to show the address, if it is 'B' not to show the address I need to modify the next template: ...
1
vote
2answers
53 views

how to use plugin/other module for add html for other module in magento 2?

I want to render html (Front-side) using plugin/other module in different module. There's already existing form in Module X. I want add one drop-down in that from using Module Y. How can i achieve ...
0
votes
1answer
31 views

cant run code on cms page within <a> tag

I wanted to link from a cms block within a product page to its corresponding amazon product which can be identified via an custom attribute called "asin". So I have put the link like <a href="...
0
votes
2answers
61 views

web html template not able to overwrite

I'm trying to overwrite below html template file but not working. I have already run commands. vendor\magento\module-sales-rule\view\frontend\web\template\payment\discount.html to app\design\...
0
votes
1answer
22 views

How to update a main menu in “neoshop” theme?

I would like to modify the frontend main manu in Magento 1.9.1.0 . I'm using the theme neoshop if this info is useful. I've not found menu components into the CMS -> static block nor pages with the ...
0
votes
2answers
48 views

Dislaying certain attributes

I am displaying all of the attributes right next to the product as shown below I am doing it by adding <?php echo $this->getChildHtml('additional')?> to my theme \app\design\frontend\...
0
votes
1answer
318 views

Magento 2 Knockout XML->PHTML->JS->HTML

I want to display static block in html login popup during checkout, but there is a problem. This is the html template which is called from js, this js is called from phtml, and this phtml template ...
1
vote
1answer
109 views

How to bind the image in ko template

I have image tag in phtml file .. And also i got the value of images and media url from ajax call . How to bind it like that in ko template <img alt="<?php echo $sizeGuideImage->getAlt() ?&...
0
votes
2answers
62 views

Change html title browser tab

In magento the html title is standard configured that it shows the name of the product when on a product page. It also shows the product name if you are on the review page of that specific product. ...
0
votes
0answers
24 views

Magento 2 Email Template - Conditional HTML Output

We are trying to conditionally output html in an email template. We have been trying something like this: {{if store.getCustomAttribute()}} <div> Some content here </div> {...
0
votes
0answers
116 views

In custom grid search field are not working in Magento 2, grid is working but when searching any field ajax request is just hanging

E:\xampp\htdocs\mage\app\code\Tutorial\SimpleNews\view\adminhtml\layout\simplenews_logs_grid_block.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
76 views

How to make vertical navigation collapse per category?

Please check as example https://www.uitverkoopgigant.nl/eglo-tarbes-hanglamp-9002759941918.html. Its made in Magento 2. Here you see that the category colapse all subcategories. How can I make it so ...
0
votes
1answer
30 views

Spinner Icon is not visible

I would like to display a spinner icon when the user clicks the HTML form submit button and want to hide it when the data is posted to the destination URL. But, In my case, It's not working. Below is ...
4
votes
2answers
232 views

Magento 2.2.4 = How to add new link on checkout page?

I have created 1 custom tab on the checkout page and it's working fine I follow below link to add the tab on cart page. Magento 2 - Add step on checkout I want to add a link name as "Create an ...
0
votes
1answer
31 views

How to call the Shop now categeory in side the seach bar

I want to call the shopnow categeory inside the search bar as a filter option in the search bar.
1
vote
0answers
162 views

Short Description and long description are not responsive on product page of Magento 2

I am currently facing an issue with the responsiveness of Magento 2 product page. My descriptions are passing the browser screen toward the right side. They are showing up like this in the attached ...
0
votes
0answers
40 views

Magento 2: How to remove code from html?

I need remove from the page checkout this: The code of this html is the next: <div class="billing-address-same-as-shipping-block field choice" data-bind="visible: canUseShippingAddress()"> ...
0
votes
1answer
30 views

How to add my own HTML and Javascript codes to Magento 1

This must be a basic question but I cant find an answer to use. I did some custom functions with Javascript and a design (css/html) and now I want to include them in a Magento 1 project, how can I ...
0
votes
2answers
40 views

How i Modify my magento 2 theme in my theme css is integrated but HTML not

I am new and learn Magento 2. I am creating my new custom theme in Magento 2 and integrated my HTML and CSS.HTML is not showing on my page but CSS work How I apply HTML in my theme and modify my theme ...