Skip to main content

User account menu

  • About Us
  • Log in
Log in
Mycode.blog website logo
category-icon
HTML - CSS

Must Read

  • Develop Debugging Skills with Chrome Dev Tools and Debug Keyword
  • How to write jQuery code for developing toggle search bar
  • Maximising Your Website's Performance, Avoid These HTML Pitfalls
  • How to create a progress bar using JavaScript
  • CSS Guidelines for Becoming a Top-Notch UI Developer

Recent Blogs

  • Develop Debugging Skills with Chrome Dev Tools and Debug Keyword
  • Achieving Advanced DOM Manipulation with jQuery Chaining Methods
  • Customized Landing page for your browser using JavaScript
  • A Basic Calculator App as an Extension to Google Chrome Browser
  • How to write jQuery code for developing toggle search bar

Recent Snippets

  • How to strip HTML tags in JavaScript
  • Develop word counter application with the help of JavaScript
  • Disabling right-click to avoid content copying in one line
  • Remove whitespace between HTML tags in drupal 8/9 twig templates
  • Copy to clipboard functionality using JavaScript in one line
JS - jQuery

Must Read

  • Develop Debugging Skills with Chrome Dev Tools and Debug Keyword
  • The predefined Rules for Writing & Using JavaScript Functions
  • How to write jQuery code for developing toggle search bar
  • How to create a progress bar using JavaScript
  • How to create a progress bar using JavaScript

Recent Blogs

  • How to use local storage in javaScript
  • How to Install react app with their node packages on Ubuntu 22
  • Develop Debugging Skills with Chrome Dev Tools and Debug Keyword
  • Fetch using for Get method in JavaScript
  • How to use local storage in javaScript

Recent Snippets

  • How to strip HTML tags in JavaScript
  • Converting string to int in javascript
  • Generating random numbers in javascript
  • How to write single & multi line comments in web technologies
  • How to strip HTML tags in JavaScript
Drupal

Must Read

  • How to Create Entities (node, user, term) programmatically in Drupal 8/9
  • List of form element types in Drupal 8/9
  • Command-line tools & useful commands for Drupal developers
  • How to install Linux, Nginx, MySql, Php(LEMP) stack in Ubuntu
  • A Beginner's Guide to Custom Theme Development in Drupal 8/9

Recent Blogs

  • Create a custom entity in Drupal 8/9 using drupal-console
  • All the possible ways to install a module in Drupal 8/9
  • Delete All Entities (node, user, term) by specific conditions in Drupal 8/9
  • How to Create Entities (node, user, term) programmatically in Drupal 8/9
  • How to unpublish nodes using cron in drupal 8/9

Recent Snippets

  • Drupal 8/9 programmatically create a user entity
  • Drupal 8/9 programmatically create a link that opens in new tab
  • Get current active user roles, uid in drupal 8 and drupal 9
  • Attach an asset library to a specific page in drupal 8/9
  • Drupal 8/9 attach an asset library in a Twig template

Main navigation

  • Blogs
  • Snippets

Mobile menu

  • About us
  • Blog
  • Code Snippet

Search Results

    • All
    • Blog
    • Code Snippet
  • menu icon
    • Recent
    • Popular
Code snippet bookmark-iconAdd to read list

Drupal 8/9 add body class for the current page based on url alias

  • Drupal 8
  • Drupal 9
navya
navya, Credit to volkotech-solutions Dec 09
Code snippet bookmark-iconAdd to read list

Open Link/URL in Same Tab/Window or New Tab in HTML & JS

  • HTML
  • JavaScript
lakshmi
lakshmi, Credit to volkotech-solutions Oct 30
Code snippet bookmark-iconAdd to read list

Programmatically check table exists in database in Drupal 8/9

  • Drupal
  • Drupal 8
  • Drupal 9
  • Mysql
lakshmi
lakshmi, Credit to volkotech-solutions Aug 28
Code snippet bookmark-iconAdd to read list

How to verify whether the module is installed or not in Drupal 8/9

  • Drupal
  • Drupal 8
  • Drupal 9
  • PHP
lakshmi
lakshmi, Credit to volkotech-solutions Sep 30
Code snippet bookmark-iconAdd to read list

How to change the front page title programmatically in Drupal 8/9

  • Drupal
  • Drupal 8
  • Drupal 9
  • PHP
lakshmi
lakshmi, Credit to volkotech-solutions Mar 23
Code snippet bookmark-iconAdd to read list

Drupal 8/9 how to render view block programmatically

  • Twig
  • Drupal 8
  • Drupal 9
  • PHP
navya
navya, Credit to volkotech-solutions Mar 10
Code snippet bookmark-iconAdd to read list

Remove and Add the lazy loading attribute from the img tag programmatically in drupal 8/9

  • PHP
naveen-golla
naveen-golla, Credit to volkotech-solutions Sep 08
Code snippet bookmark-iconAdd to read list

Remove duplicates from array using JavaScript

  • JavaScript
navya
navya, Credit to volkotech-solutions Dec 03
Code snippet bookmark-iconAdd to read list

Drupal 8/9 conditionally printing of entity fields in twig

  • Drupal 8
  • Drupal 9
  • Twig
navya
navya, Credit to volkotech-solutions Dec 17
Code snippet bookmark-iconAdd to read list

Drupal 8/9 how to make eCommerce product entity title linkable to its respective pages programmatically

  • Twig
  • Drupal 8
  • Drupal 9
navya
navya, Credit to volkotech-solutions Mar 04
Code snippet bookmark-iconAdd to read list

Drupal 8/9 date formats and its filters in twig template

  • Twig
  • Drupal 8
  • Drupal 9
  • PHP
navya
navya, Credit to volkotech-solutions Dec 25
Code snippet bookmark-iconAdd to read list

Multi-Selection in Select Box using jQuery, No Ctrl+Click

  • Jquery
  • JavaScript
  • HTML
  • CSS
navya
navya, Credit to volkotech-solutions Jan 02
Code snippet bookmark-iconAdd to read list

How to install curl in Ubuntu via the command line

  • PHP
  • Drupal
navya
navya, Credit to volkotech-solutions Nov 28
Code snippet bookmark-iconAdd to read list

Drupal 8/9 get user image field programmatically in twig

  • Drupal
  • Drupal 8
  • Drupal 9
  • PHP
  • Twig
navya
navya, Credit to volkotech-solutions Sep 02
Code snippet bookmark-iconAdd to read list

How to add website domain name as a class for body using JS

  • JavaScript
  • Jquery
navya
navya, Credit to volkotech-solutions Aug 22
Code snippet bookmark-iconAdd to read list

Drupal 8/9 add site domain name as a class for body tag

  • Drupal
  • Drupal 8
  • Drupal 9
  • PHP
  • HTML
navya
navya, Credit to volkotech-solutions Aug 23
Code snippet bookmark-iconAdd to read list

How to remove extra characters between Drupal generated HTML

  • Drupal
  • Drupal 8
  • Drupal 9
  • HTML
  • CSS
navya
navya, Credit to volkotech-solutions Jul 18
Code snippet bookmark-iconAdd to read list

Drupal 8/9 print view block/page title programmatically twig

  • Drupal
  • Drupal 8
  • Drupal 9
  • PHP
  • Twig
navya
navya, Credit to volkotech-solutions Jul 19
Code snippet bookmark-iconAdd to read list

Drupal 8/9 add custom library to the content type node edit form

  • PHP
  • Drupal
  • Drupal 8
  • Drupal 9
navya
navya, Credit to volkotech-solutions Jun 15
Code snippet bookmark-iconAdd to read list

How to write single & multi line comments in web technologies

  • HTML
  • CSS
  • JS
  • PHP
  • Twig
  • JSON
  • Mysql
navya
navya, Credit to volkotech-solutions Feb 14
  • Load More

mycode-blog logo

Developers blogging community to share tech blogs and code snippets.

Company

  • About us
  • Careers
  • Contact us
social:
  • twitter icon
  • facebook icon
  • linkedin icon
  • email icon
up-arrow

Terms and Services

  • Terms & conditions
  • Privacy policy

Copyright © 2021

Site map

  • Site map