Questions tagged [html]

Denotes questions related to HTML code in Magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
3 views

How to make City optional?

I wanna make City optinal. I was made in JS a Dropdown so i can select the city. I put "city" textbox in display:none in CSS and next, copy onchange the dropbox text into this city textbox so the ...
3
votes
1answer
32 views

Strange white-space above header

After implementing among others the Facebook Pixel, there is a strange white-space above the header of our magento website: https://www.oplader.com Does anybody have any idea what this could be? Even ...
0
votes
0answers
39 views

How to modify the content of this DIV?

I need to modify the content of this div. To be exact, I need to change the conntent where it says <?php echo $html ?> However, I don't know where to find the content. The file path is: src/...
0
votes
1answer
40 views

Magento 2 set page title as html

How to set page title to have html on it E.G $this->pageConfig->getTitle()->set(__('Your'.html_entity_decode(' <span>Page</span>'). 'Title')); That's ain't working! Anyone know ...
3
votes
0answers
20 views

Redirect old page to new html page using .htaccess

We have a static HTML website having MicrosoftDynamics.html page recently we changed to MicrosoftDynamicsNav.html. But when we searched in google the page URL is showing old one, If we clicked the ...
0
votes
0answers
15 views

Minify HTML,JS,CSS - Some Resources not minified

After turning on Minification from configuration (Admin side). Changed mode to Production Mode. While checking in page speed insights that some of HTML,JS and CSS showing as not minified. Given below ...
0
votes
0answers
32 views

How to get url parameter in knockout js in checkout/index/index/#payment page

I am trying to replace my custom payment method's button called "submit request" to "place order" button when the status is approved. I send status in URL parameter and now want to get it in knockout ...
0
votes
0answers
21 views

Magento 2 | how to use html_entity_decode

The use of html_entity_decode(); is forbidden What can I use instead of it?
0
votes
0answers
11 views

How do I override an html file located in the admin seccion? [duplicate]

I'm using the new Magento 2.3 pagebuilder and i'm trying to add a "span" tag inside a button of the banner/poster of the pagebuilder. I found out where I can change the pagabuilder view on my ...
1
vote
2answers
34 views

Cache Issue on mobile and desktop

facing the cache issue. Cache Clean issue - HTML/CSS changes are not reflected on normal browsers. It shows in private or Incognito window. We can't tell each customer to open the website in ...
0
votes
0answers
22 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
30 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
57 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
25 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
30 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
10 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
38 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
27 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
41 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
17 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
26 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
54 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
25 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
34 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
86 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
186 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
97 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 ...
1
vote
1answer
89 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
64 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
31 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
181 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
45 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
3answers
194 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
19 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
226 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
50 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
38 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
91 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
56 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
35 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
68 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
25 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
50 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
383 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
167 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
76 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. ...