Questions tagged [html]
Denotes questions related to HTML code in Magento.
128
questions with no upvoted or accepted answers
3
votes
0
answers
33
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 ...
3
votes
0
answers
197
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('...
2
votes
0
answers
207
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 ...
2
votes
2
answers
362
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: ...
2
votes
0
answers
115
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 & ...
2
votes
0
answers
28
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 ...
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" ...
2
votes
1
answer
807
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 ...
1
vote
2
answers
35
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 ...
1
vote
2
answers
69
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 ...
1
vote
0
answers
502
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=&...
1
vote
0
answers
156
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="...
1
vote
0
answers
47
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\...
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
...
1
vote
0
answers
34
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 ...
1
vote
0
answers
136
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,...
1
vote
0
answers
260
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 ...
1
vote
0
answers
136
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.
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 ...
1
vote
0
answers
150
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: ...
1
vote
0
answers
81
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 ...
1
vote
1
answer
133
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
0
answers
783
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($...
1
vote
1
answer
269
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
1
answer
636
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\...
1
vote
0
answers
468
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
0
answers
702
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":"[...
1
vote
1
answer
402
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 ...
1
vote
1
answer
88
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 ...
1
vote
2
answers
268
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 ...
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,
...
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....
1
vote
0
answers
502
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" ...
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 ...
1
vote
1
answer
499
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 ...
1
vote
1
answer
373
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 ...
1
vote
1
answer
434
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 ...
1
vote
0
answers
605
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 ...
1
vote
0
answers
206
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 ...
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
...
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 ...
1
vote
1
answer
437
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 ...
1
vote
1
answer
514
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 ...
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->...
1
vote
1
answer
268
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, ...
1
vote
1
answer
552
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 ...
1
vote
1
answer
737
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 ...
1
vote
0
answers
503
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...
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; ...
0
votes
0
answers
19
views
HTML vs XML in Magento 2
I am trying to edit my theme in Magento 2. I am using the Theme "Fastest", and I am trying to do things such as add background images. I am looking for an HTML file for editing the header ...