Questions tagged [html]

Denotes questions related to HTML code in Magento.

128 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
34 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 ...
Bojjaiah's user avatar
  • 4,002
3 votes
0 answers
203 views

Magento 2 - setting a container class programatically

How can I retrieve a container from the layout programmatically and then set/update the htmlClass? I would like to be able to do something like the following: $container = $layout->getContainer('...
Sophie Baxter's user avatar
2 votes
0 answers
211 views

Magento 2.3: Automatically add HTML tags in a Static Block after save

Automatically adding HTML tags in a Static Block after save When saving static block from admin then after saving static block it is automatically adding HTML tags How can we solve it so that it will ...
sumeet bajaj's user avatar
  • 1,296
2 votes
2 answers
369 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: ...
blob's user avatar
  • 455
2 votes
0 answers
119 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 & ...
Alex Ambal Mulin's user avatar
2 votes
0 answers
34 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 ...
Michael Müller's user avatar
2 votes
0 answers
568 views

Magento related products get category

I want to edit my /catalog/product/list/related.phtml file. I want to define all related products based on their main category. So for example that all mices are displayed in their category "Mices" ...
JGeer's user avatar
  • 1,418
2 votes
1 answer
809 views

How to Get email template in dynamically choose format(For example Html Or Text) using Magento 2?

I need to get email template in dynamically choose format(For example Html Or Text) while customer orders anything in Magento 2. For Example: Customer account has one option, which Email ...
Rajkumar .E's user avatar
  • 3,570
1 vote
2 answers
44 views

How to locate HTML files associated with the mobile view of a theme?

I installed a Magento theme on my server and wanted to make some changes to the menu within the theme.I am able to view the HTML codes related to the desktop view menu in the block section of the ...
Hirun's user avatar
  • 23
1 vote
2 answers
136 views

how to pass js window varibles from templates to template files in magento? I want to get system config values in the web folder

I want to pass js window variables from view/frontend/templates/form.phtml to view /web/template/shipping-information.html and view/web/js/shipping-information.js How can I do it? it is because I want ...
Mohmad Ashik M A's user avatar
1 vote
0 answers
565 views

Magento 2 - Custom Widget Wysiwyg Editor allow html tags

I try to add a wysiwyg editor to my custom widget. I added the field to my widget.xml <parameter name="content" xsi:type="block" required="false" visible=&...
Vx0's user avatar
  • 11
1 vote
0 answers
162 views

cms blocks removing content after save in magento 2?

cms block break html tags after saving data. it is removing url of image and display like this <div class="col-sm-12 col-xs-12"> <a href="#"> <img class="...
jykmhar123's user avatar
1 vote
0 answers
49 views

Magento 2.3 How add additional links in tag <head>?

How to add information to the tag, please tell me?! I want to add .phtml file I can change the class along this path and add this way, but it seems to me that there is another way Magento\Framework\...
David Young's user avatar
1 vote
1 answer
4k views

Magento 2 : Calling a JS function from another JS file?

This Accessing a JS function from another JS file solution not mapped on my problem ,Please give me direction that how can i call getPureValue: function () from tax.js into some where in minicart.js ...
Muhammad Abdullah's user avatar
1 vote
0 answers
35 views

Magento 2 : Cart keeps returning original quantity

I am trying to update the value of the qty in the shopping cart page with a Knockout on click, but it seems to revert the value to it's original state. This is the script for the button : <td ...
Litsher - Nathan's user avatar
1 vote
0 answers
144 views

How to Show ONLY Products Created within a Week on Homepage Category Block

<div class="product-tab-carousel">{{widget type="Codazon\ProductFilter\Block\Product\ProductsList" display_type="all_products" products_count="16" order_by="sold_count DESC" show="thumb,name,sku,...
Makoto's user avatar
  • 11
1 vote
0 answers
265 views

How to print an HTML Table multiple times inside a custom email template in Magento 2?

In custom email template placed at: Vendor/Module/view/frontend/email/custom_email_template.html I have a table which prints structure of a giftcard in email, For Example like this: and table ...
Ajwad Syed's user avatar
  • 1,591
1 vote
0 answers
144 views

Magento 2 : Empty html tag in theme

I am working in the home page on the theme and it generates empty strong tags How can I find and remove it Any helps? Thank in advance.
MichaelHa's user avatar
  • 661
1 vote
1 answer
2k views

Uncaught TypeError: Cannot read property 'innerHTML' of null

We have tried to do a checkout on our website but its not working. When looking into the console, it says the below error Uncaught TypeError: Cannot read property 'innerHTML' of null and its ...
MagentoDev's user avatar
1 vote
0 answers
151 views

How to use jquery function date time picker in magento 1.9

<script> jQuery(function() { jQuery(document).ready(function() { jQuery(".date").datepicker(); jQuery(".date").datepicker({ onSelect: ...
Radhika's user avatar
  • 11
1 vote
0 answers
84 views

Magento 2 how to add date of birth in checkout (date picker)

I want to add the date of birth date picker in checkout only for guest users. I have read a few things which indicate that I have to use knockoutjs. But I wasn’t sure what is the correct way to ...
Jack Brooks's user avatar
1 vote
1 answer
134 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 ...
blob's user avatar
  • 455
1 vote
0 answers
802 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($...
Anees's user avatar
  • 634
1 vote
1 answer
293 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-...
Austin's user avatar
  • 11
1 vote
1 answer
724 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\...
Muhammad Hasham's user avatar
1 vote
0 answers
473 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 ?...
Mohammad Faizan's user avatar
1 vote
0 answers
711 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":"[...
Balwant Singh's user avatar
1 vote
1 answer
416 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 ...
Mohsin Khan's user avatar
1 vote
1 answer
90 views

Website not loading properly on first visit

I developed a website on magento 2.2.2 (CE) which is running on managed cloud hosting. link to website : https://i-ranu.com all was going good but all of sudden am facing a wierd issue, that website ...
RANU EMPRISE's user avatar
1 vote
2 answers
275 views

Jquery post request returning html

I am trying to make an AJAX request in my Magento 2.1.8 custom module. The Http Post Request is returning all of the data i expect it to in JSON format, However it is also adding on some of my html ...
user avatar
1 vote
0 answers
41 views

Theme Integration Problem Frontend

When I Integrate HTML Theme Magento 1.9 For Learning Purpose, I Use Static Blocks For Display Some Content In Frontend, but All Content Are Not Display Properly. it was shown in middle. pls help me, ...
Rushikesh Solanki's user avatar
1 vote
1 answer
1k views

How can I add html template to the checkout onepage?

Checkout generate from onepage.phtml file that generate another html page inside like details.html for billing-address and another html file. How can I add new html file to generate inside the onepage....
Edwin Widhiyanto's user avatar
1 vote
0 answers
503 views

Script in html does not work

I tried to add some javascript in details.html in vendor/magento/module-checkout/view/frontend/web/template/billing-address like in code below. details.html : <div class="billing-address-details" ...
Edwin Widhiyanto's user avatar
1 vote
0 answers
50 views

Product View Html

I'm having a problem with the position of some of the objects of my product page. For example the header of the description is not aligned with the menu on the left and I have a little too much white ...
Thomas Meier's user avatar
1 vote
1 answer
508 views

Multiply subtotoal price in minicart

I want to show two subtotal prices in the minicart. The plan is to multiply the subtotal price and print it next to the original subtotal price. The price is printed by knockout in the html file ...
Rickard Johansson's user avatar
1 vote
1 answer
394 views

can't override "modal-slide.html"

I'm trying to override modal-slide.html in my base theme so I place that file at: app/design/frontend/<vendor>/base/Magento_Ui/web/templates/modal/modal-slide.html But Magento just won't pick ...
steros's user avatar
  • 1,622
1 vote
1 answer
455 views

Magento 2 infinite scroll issue

I am using a magento 2 custom infinite scroll module. When I scroll down ajax request initiate and response come with new page content . But this response not updating on current content . I checked ...
Sintu Roy's user avatar
  • 433
1 vote
0 answers
620 views

Magento2 HTML Invoice

I have a requirement to print Tamil Unicode characters in Invoice which is not possible with PDF. In magento 1.9 i was using custom module. Is there a similar kind available for Magento2? If not some ...
ArunPrakash's user avatar
1 vote
0 answers
213 views

Rendering: only <body> content visible on some pages

Almost all the page's render correct. Currently i have 1 (product) page which shows only the content of the tag. When i view the source, the html,body, head tags are all gone (both opening and ...
Stijn Duynslaeger - Echron's user avatar
1 vote
0 answers
81 views

Magento 2.1 position in layout XML changes position in generated HTML

I'm trying to understand Magento's html building process. Currently I'm stuck at this file: https://github.com/magento/magento2/blob/develop/app/code/Magento/Theme/view/frontend/layout/default.xml ...
steros's user avatar
  • 1,622
1 vote
1 answer
92 views

OK Html and Css loaded into page but it wont render properly

I have added Css and Html code into a cms page. Problem is I cant get the page to render properly Any ideas or help would be good. You can take a look at the problem Ime facing Below. As you can see ...
Rich M's user avatar
  • 21
1 vote
1 answer
438 views

How to avoid HTML characters in contact form?

The problem is when user submit the form with special characters in the contact form (description field), in the mail it converts to HTML characters. After lot of debugging I nailed down the following ...
FR STAR's user avatar
  • 145
1 vote
1 answer
516 views

Multi stores with different CSS

How is the workaround with multi-store, if I want to add different style with the CSS. In one of the stores, i want to hide the old price (Just by settings the font-size to 0px). The stores is on ...
Grumme's user avatar
  • 111
1 vote
0 answers
98 views

How do I add select options with eval()?

I have a select like: ' <select multiple name="nav_selected_categs[]" style="height:200px;" id="nav_selected_categs" class="required-entry select"> '.eval('$id = $this->...
ana.coman93's user avatar
1 vote
1 answer
280 views

Magento API calling using HTML and javascript

I'm new to Magento and I'm developing a PhoneGap app using HTML5, CSS and Javascript. I searched many places and read Magento documentations, but couldn't get any example for authenticating, calling, ...
SREE's user avatar
  • 111
1 vote
1 answer
558 views

JavaScript HTML5 Canvas Snow in 3D in magento

I'm trying to have a snow effect on my magento site. I got a code from seb.ly which i tried on a normal html5 website and it worked, but i added it on my magento page it didn't work. I added it to ...
Jahswey's user avatar
  • 85
1 vote
1 answer
739 views

Zoom in/out feature on magento banner

I have a magento theme installed which comes with a banner. But I'm trying to add more functionality to the banner to make it catchy for customers. I want the banners to zoom in or out when any image ...
Jahswey's user avatar
  • 85
1 vote
0 answers
506 views

How can I add HTML formatting to the comments box in the order admin area in Magento 1.9?

Is there a way I can add html formatting to the order comments within the admin area? Just writing the comments using html doesn't work...
TheKnightlyWebGuy's user avatar
1 vote
1 answer
5k views

Magento 1.9 - style email template

I am trying to apply my custom css in email template. I already done these things. Add inline css to my html <table align="center" style="width:600px; background:#FFF; border:1px solid #CCC; ...
urfusion's user avatar
  • 346
0 votes
0 answers
12 views

Add a div class to all the fields in shipping form in magento2

I want to customize my shipping and billing form in magento one page checkout process and for that I have to add a custom CSS class/div class to shipping and billing form.If anyone have any leads, ...
Tisha Jhanwar's user avatar