How can I define a start number for ‘ol’ list other than 1 via css
You can use “start” attribute for “ol” list.
<ol start="5"> <li>Item 1</li> <li>Item 2</li> </ol>
I would like to create a print button for my website, so the user can print my current web page
You can use the js method to trigger the print feature of the browser. Here is the example to explain how to create a print button
<input type="button" value="print" onClick="window.print()">
I have a contact form which will be storing name, email address and phone number. How to make contact form compliant with GDPR
To make the contact form compliant with GDPR
I have installed more than 2 different JavaScript libraries e.g jQuery,Mootools, Prototype on my site and have conflict issues
You can turn on no-conflict mode with jQuery
jQuery.noConflict(); jQuery( document ).ready(function( $ ) { // You still can use $ in here as an alias to jQuery. $( "p" ).hide(); });
How can I use Jquery to select the HTML element by given class or ID
To select the HTML element by HTML ID
$( "#divId" );
To select the HTML element by HTML class
$( ".divClass" );
I have created scripts on my localhost when I tried to print out the post data, it returns nothing, However its working fine with GET
It’s more like caused by server configuration, I am not sure how did you install and configure your server, but can have a look following URL. Hope this can you help.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207255485-No-POST-values-caught
How can I remove a specific Magento block from XML layout file
you can use “remove” tag to remove the specific Magento block.
Here is an example
<default> <reference name="top.menu"> <remove name="currency" /> </reference> </default>
Recently I saw lots of structured error from my webmaster, when I tested my WordPress pages via Google Structured Data testing tools, I got the Following errors:
Error: Missing required field “entry-title”.
Error: Missing required field “updated”.
Error: Missing required hCard “author”. How to solve those issues
Just add / update the following codes then all issues will be gone.
<h1 class="title single-title entry-title"><?php the_title(); ?></h1> <span class="post_date date updated"><?php the_time('j F,Y'); ?></span> <span class="vcard author"> <span class="fn"><?php the_author(); ?></span> </span>
How can I disable or remove the Magento products comparison feature
To disable or remove the Magento products comparison feature, you may need to modify file
app/code/core/Mage/Catalog/Helper/Product/Compare.php
and change the following code:
public function getAddUrl($product){return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product));}
To
public function getAddUrl($product){//return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product)); return false;}
Edit ./app/design/frontend/base/default/layout/catalog.xml (if you are using a different Magento theme, enter its name instead of default) and change the following code:
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
To
<!-- <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/> -->
Once its done, Need to flush the Magento cache from Magento backend area > System > Cache Management.
How can I make multiple select always show vertical scrollbar
You can do it via CSS
overflow-x: hidden; overflow-y: scroll;