December 4, 2020

Some rules of defining HTML tags

rules of defining HTML

 


- In HTML you can define element of start tag, write content, and end tag


- Rule of HTML element is define everything between start tag and the end tag

<h1>Give Heading</h1>

<p>Write Paragraph</p>


The <html> element is the root element and it defines the whole HTML document.

It has a start tag <html> and an end tag </html>.

Then, inside the <html> element there is a <body> element:


<html>

<body>

<h1>Write Heading</h1>

<p>Write paragraph.</p>

</body>

</html>


* For more information and learn click here

October 22, 2020

Woocommerce: checkout form remove label and add placeholder

 

checkout form remove label and add placeholder


- Woocommerce allow you to remove any property of $field->property by using unset,

- Reference can be here: Customizing checkout fields using actions and filters,

- Here simple example of checkout form remove label and add placeholder,


e.g:

add_filter('woocommerce_checkout_fields','wc_checkout_fields_remove_callback');

function wc_checkout_fields_remove_callback($fields) {

    foreach ($fields as $cat => $value) {

        foreach ($fields[$cat] as $field => $prop) {

            unset($fields[$cat][$field]['label']);

        }

    }

   return $fields;

}


Enjoy!

October 19, 2020

In JavaScript simple script for print specific part of website.

 



- You can easly print any part of webpage means any specific div using javascript,

- Please follow simple below steps for that:

e.g.:

HTML

    <div id="any_id_name">

      <p>Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.</p>

     </div>

JavaScript

    <script type="text/javascript">

var prtContent = document.getElementById("any_id_name");

var WinPrint = window.open('', '', 'width=500,height=500,scrollbars=0,status=0');

WinPrint.document.write(prtContent.innerHTML);

WinPrint.document.close();

WinPrint.focus();

WinPrint.print();

WinPrint.close();

</script>

Note: Please change width and height as per your requirenment of popup size.

Enjoy!

August 5, 2020

Laravel development server started but not working in URL


  • I face same issue when I try to installed Laravel in my localhost

    - In command line Go to your laravel installed directory,

    e.g. : C:\xampp\htdocs\your-project\ php -S localhost:8000 -t public/
    
    - Now try again with: php artisan serve command and open in URL http://localhost:8000

Enjoy!

OpenCart how to change copyright text from admin?


    

  • In this post, you will get help to change footer copyright text/notification from admin.

  • Please follow below steps:
  1. First login in admin panel and than go to the Design -> Language Editor.
  2. Click Add New in the top right side.
        

    
    3. Select Language, Route: common/footer, key: text_powered.
    
    

    4. Insert your value in last textarea (You can used HTML content here!)
    
    Enjoy!

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...