Home kellton

Main navigation

  • Services
    • Digital Business Services
      • AI & ML
        • Agentic AI Platform
        • Utilitarian AI
        • Predictive Analytics
        • Generative AI
        • Machine Learning
        • Data Science
        • RPA
      • Digital Experience
        • Product Strategy & Consulting
        • Product Design
        • Product Management
      • Product Engineering
        • Digital Application Development
        • Mobile Engineering
        • IoT & Wearables Solutions
        • Quality Engineering
      • Data & Analytics
        • Data Consulting
        • Data Engineering
        • Data Migration & Modernization
        • Analytics Services
        • Integration & API
      • Cloud Engineering
        • Cloud Consulting
        • Cloud Migration
        • Cloud Managed Services
        • DevSecOps
      • NextGen Services
        • Blockchain
        • Web3
        • Metaverse
        • Digital Signage Solutions
    • SAP
      • SAP Services
        • S/4HANA Implementations
        • SAP AMS Support
        • SAP Automation
        • SAP Security & GRC
        • SAP Value Added Solutions
        • Other SAP Implementations
      • View All Services
  • Platforms & Products
    • Audit.io
    • AiQ
    • Tasks.io
    • Optima
    • tHRive
    • Kellton4Health
    • Kellton4Commerce
    • KLGAME
    • Our Data Accelerators
      • Digital DataTwin
      • SmartScope
      • DataLift
      • SchemaLift
      • Reconcile360
    • View All Products
  • Industries
    • Fintech, Banking, Financial Services & Insurance
    • Retail, E-Commerce & Distribution
    • Pharma, Healthcare & Life Sciences
    • Non-Profit, Government & Education
    • Travel, Logistics & Hospitality
    • HiTech, SaaS, ISV & Communications
    • Manufacturing
    • Oil,Gas & Mining
    • Energy & Utilities
    • View All Industries
  • Our Partners
  • Insights
    • Blogs
    • Brochures
    • Success Stories
    • News / Announcements
    • Webinars
    • White Papers
  • Careers
    • Life At Kellton
    • Jobs
  • About
    • About Us
    • Our Leadership
    • Testimonials
    • Analyst Recognitions
    • Investors
    • Corporate Sustainability
    • Privacy-Policy
    • Contact Us
    • Our Delivery Centers
      • India Delivery Center
      • Europe Delivery Center
Search
  1. Home
  2. All Insights
  3. Blogs

How to Add Extra CSS and JS to a Site in Drupal?

Product Engineering
September 26 , 2017
Posted By:
Kellton
linkedin
How to Add Extra CSS and JS to a Site in Drupal

Other recent blogs

ai agent workflow
What Are Agentic AI Workflows? A Complete Guide for 2025
June 24 , 2025
VAPT Methodologies
VAPT Methodologies: Top modern security testing priority for Cybersecurity leaders
June 23 , 2025
Redefining Data Roles with Agentic AI
Redefining data roles with Agentic AI: What professionals must know
June 20 , 2025

Let's talk

Reach out, we'd love to hear from you!

Image CAPTCHA
Enter the characters shown in the image.
Get new captcha!

The drupal community relies heavily on leveraging Cascading Style Sheet (CSS) and JavaScript (JS) to increase page ranking in the search engines and provide visitors with a better user experience. As companies continue to consider page loading speed as an important factor, reducing load times is also key. The load times can be reduced by adding extra CSS style sheets and JavaScript files which decreases the size of a web page and delivers a better User Experience.

How does our module works?

Multiple deployments for executing CSS or JS code on your Drupal site are possible with our module contributed to drupal.org. This is a light-weight module and does not use any third-party libraries.

Through this module, you can add two text areas—one for CSS and one for JS—in your Drupal site. Once these text areas have been added, there is no need to deploy any code as the module stores CSS and JavaScript as variables rather than as files. The saved CSS and JS remains in the system until you explicitly remove the code from module configuration.

Install in easy steps

For installing this module, you must follow the following steps:

  • Download the module from drupal.org
  • Upload the module to sites/all/modules
  • Enable the module
  • Flush the Drupal sites cache
  • Add CSS code

Drupal

  • Add JS code

Drupal

In order to further alter the module settings, users need to use the "administer extra css js" permission.

Setting-up the module

After the module has been downloaded, the JS and CSS code is added by default to all themes in your Drupal site. If you want theme-specific CSS and JS then you need to perform the following steps:

  • Go to admin/config/content/extra-js-css-themes
  • Add themes’ name separated using comma e.g. bartik, gardin etc.

A Storm in a tea cup

  • This module adds inline CSS/JS rather than a CSS or a JS file.
  • CSS and JS once added by this module will be available for the entire site without the developer’s permission

The use of extra CSS and JS can prove profitable for your online business. However, after adding any kind of CSS and JS through this module for future deployments, it is recommended to send the code of CSS and JS by files and empty both the extra CSS and JS text area fields.

Want to know more?

VAPT Methodologies
Blog
VAPT Methodologies: Top modern security testing priority for Cybersecurity leaders
June 23 , 2025
5 biggest quality assurance and mobile testing challenges
Blog
5 biggest quality assurance and mobile testing challenges for app development: Quick strategies to solve them
June 16 , 2025
Testing AI applications and ML models
Blog
Testing AI applications and ML models: Revealing proven quality assurance strategies and techniques
June 11 , 2025

North America: +1.844.469.8900

Asia: +91.124.469.8900

Europe: +44.203.807.6911

Email: ask@kellton.com

Footer menu right

  • Services
  • Platforms & Products
  • Industries
  • Insights

Footer Menu Left

  • About
  • News
  • Careers
  • Contact
LinkedIn LinkedIn twitter Twitter Youtube Youtube
Recognized as a leader in Zinnov Zones Digital Engineering and ER&D services
Kellton: 'Product Challenger' in 2023 ISG Provider Lens™ SAP Ecosystem
Recognized as a 'Challenger' in Avasant's SAP S/4HANA services
Footer bottom row seperator

© 2025 Kellton