Questions tagged [html]

Denotes questions related to HTML code in Magento.

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

How can I add custom HTML to an extension config page?

I am trying to add an HTML snippet to my extension's config page. I believe I need to create a block file and then reference this inside my extension's system.xml file using a <frontend_model> ...
0
votes
2answers
23 views

Include Cache in Magento2 module with using block

I have a block where I use as a slider in my home page, but it is not curling and I need it to do. The module I use is the Slider. Would there be a way for me to force caching the module?
0
votes
1answer
57 views

Cannot validate email - MAGENTO api - how

I've been trying without success to validate the email from my website against the MAGENTO customers API and throw a message (exist or not exist) I mean, i have a website where customers are created; ...
0
votes
3answers
53 views

Parse php plain text to html Magento 2

I have a string HTML and have to convert(parse) it to HTML in PHP. $stringHtml How to convert this to HTML so that it all <p>, <br> tag works this is Riskified decline email, and ...
1
vote
1answer
22 views

How to set an anchor tag in Customer/controllers/AccountController.php in Magento 1.9?

I have set anchor tag for that, but anchor tag is not working. How to set an anchor tag? Please suggest. Thank you.
0
votes
0answers
10 views

How to get the price of this JSON products to be exibihited on my html in a dropdown list?

I have this JSON table that I need to add on my HTML as a dropdown list and when the chosen product is selected, it shows its price and shows a button to simulate a shopping procedure (increase items ...
0
votes
1answer
20 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
36 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
41 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
42 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
21 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
16 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
48 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
25 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
18 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
37 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
34 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
156 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
29 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
28 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
36 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
44 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
31 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
52 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
27 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
29 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
96 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
27 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
56 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
87 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
236 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
106 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
160 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
81 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
8 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
32 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
3answers
286 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
48 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
298 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
21 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
274 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
66 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
40 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
115 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
61 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
39 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="...