question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use material design components - web with Wordpress?

See original GitHub issue

Hi, how do I get this to work in Wordpress??? I’ve spent literally hours upon hours upon hours searching Google to find the answer but it seems like I’m the only person in the entire world who wants to use MDC-web with Wordpress…

I’m running Wordpress locally using XAMPP (Windows 10 OS) and have so far:

  1. Installed Wordpress
  2. Uploaded _s (underscores) starter theme to Themes directory
  3. Installed SASS
  4. Installed node.js
  5. Installed mdc-web to @node-modules folder in my root directory
  6. Added the following line to functions.php: wp_enqueue_style( 'mdc-web-style', '/node_modules/material-components-web/dist/material-components-web.css' );
  7. Added the following to the start of /node_modules/material-components-web/material-components-web.scss:
$mdc-theme-primary: #00BCD4; // Cyan 500
$mdc-theme-secondary: #FFEB3B; // Yellow 500
$mdc-theme-background: #00BCD4; // Cyan 500
  1. Added the following to the Wordpress Sample Page:
<button class="mdc-button mdc-button--primary">
Colored button
</button>
  1. Opened the Wordpress Sample Page in Chrome

I was expecting the button to be coloured in Cyan 500 but for some reason it’s still just plain white. From what I can tell, I’ve done everything correctly. Why isn’t this working?

Literally all I want is the foundations of a Wordpress theme that is nothing more than Underscores starter theme, SASS and MDC-Web. How do I do this? Has anyone already done this and is able to provide a copy?

I really can’t believe I’m the first person to want to use Wordpress and MDC-Web together…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
touficbatachecommented, Nov 1, 2017

Hey @GCMaid, sorry for my late response but I needed to finish some things before releasing the theme. If you’d like to use it, it’s open-source here. You can read the README.md file to know more about the project.

1reaction
touficbatachecommented, Sep 26, 2017

Is that what you’re looking for? That’s a theme I made 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material Design for WordPress
Material Design provides principles, icons, and guidelines for building web experiences that can apply to WordPress sites too.
Read more >
Material Design for WordPress – WordPress plugin
The official Material Design plugin for WordPress. Customize your site's navigation, colors, typography, and shapes, use Material Components, ...
Read more >
Google launches Material Design for WordPress plugin
Most people primarily experience Material Design in Android apps, while web adoption is mostly limited to Google's first-party sites.
Read more >
How-To: Material Design for your WordPress site with CSS Hero
How-To: Material Design for your WordPress site with CSS Hero · Use shadows to create tangible surfaces and convey hierarchy of elements ·...
Read more >
Try the New Material Design Capabilities for WordPress
If you like to build websites with WordPress, then you're in for a treat. Now, for the first time, you don't need to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found