{"id":1037,"date":"2015-10-02T00:37:58","date_gmt":"2015-10-01T19:37:58","guid":{"rendered":"https:\/\/ahmadawais.com\/?p=1037"},"modified":"2015-10-02T00:38:01","modified_gmt":"2015-10-01T19:38:01","slug":"bem-css-basics-for-wordpress-themes-developers","status":"publish","type":"post","link":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/","title":{"rendered":"BEM CSS Basics for WordPress Themes Developers"},"content":{"rendered":"<p>If you develop WordPress themes, you already have some kind of a\u00a0<a href=\"https:\/\/ahmadawais.com\/my-advanced-gulp-workflow-for-wordpress-themes\/\">workflow<\/a>. But, what about CSS? As far as I know, some developers choose to write CSS with frameworks like <a href=\"http:\/\/getbootstrap.com\/\">Bootstrap<\/a>, <a href=\"http:\/\/foundation.zurb.com\/\">Foundation<\/a> and what not, while other&#8217;s don&#8217;t.<\/p>\n<p>I belong to the later type, people who don&#8217;t use CSS frameworks whatsoever.\u00a0Which is why I end up reading a lot about standard practices of writing CSS because let&#8217;s face it, screwing up is real easy when you don&#8217;t know the standards. If you are not a <a href=\"https:\/\/tommcfarlin.com\/copy-and-paste-programmers\/\">Copy Paste Programmer<\/a>, then you should care about stuff like this.<\/p>\n<h2 id=\"again-why-should-i-care\">Again Why Should I Care?<a href=\"#again-why-should-i-care\" class=\"heading-link\">#<\/a><\/h2>\n<p><strong>TL;DR<\/strong>\u00a0You should care because I have seen too many\u00a0front-end developers who know less about CSS and more about Bootstrap, which limits their thinking and we all end up with <a href=\"http:\/\/thenextweb.com\/opinion\/2015\/09\/23\/zzzzzz\/\">boring web design<\/a>.<\/p>\n<\/section>\n<div class=\"postcontents full\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1044\" src=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web.png\" alt=\"Boring-web-design\" width=\"2474\" height=\"1198\" srcset=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web.png 2474w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web-300x145.png 300w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web-1024x496.png 1024w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web-1680x814.png 1680w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web-860x416.png 860w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web-680x329.png 680w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web-400x194.png 400w, https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/Boring-web-50x24.png 50w\" sizes=\"auto, (max-width: 2474px) 100vw, 2474px\" \/><\/p>\n<\/div>\n<section class=\"postcontents wrapper\">\n<p>Some developers choose to trust standards baked in Bootstrap, I like to keep that control in my hands. Do you? \u00a0There is so much more to CSS than just knowing about the properties and how they work in a particular framework.<\/p>\n<p>As a good front-end web developer, you should know what CSS properties are supported in which browsers i.e. Make it a habit to visit\u00a0<a href=\"http:\/\/caniuse.com\/\">CanIUse<\/a>\u00a0whenever you use a new property? Slowly and gradually you will start remembering the cross-browser compatibility of your code.<\/p>\n<p>Similarly, using a grid is\u00a0not the best solution while building a WordPress theme (It can be called a good solution though certainly not the best). While there is the debate about which grid is better than the other here is a <a href=\"http:\/\/codepen.io\/ahmadawais\/pen\/LpxvaQ?editors=110\">10 lines responsive CSS grid<\/a> that I built. I use it in almost every other project.<\/p>\n<h2 id=\"bem-basics\">BEM Basics<a href=\"#bem-basics\" class=\"heading-link\">#<\/a><\/h2>\n<p>BEM is a way of writing CSS and nothing more. It helps CSS speak out loud about what it does.\u00a0It focuses on organizing sections of a website into purposeful blocks, which are comprised of their functional elements, and are then manipulated by modifiers.<\/p>\n<ul>\n<li><strong>B:<\/strong> Block<\/li>\n<li><strong>E:<\/strong> Element<\/li>\n<li><strong>M:<\/strong> Modifier<\/li>\n<\/ul>\n<\/section>\n<div class=\"postcontents full dark\">\n<div class=\"wrapper\">\n<div class=\"oembed-gist\"><script src=\"https:\/\/gist.github.com\/ahmadawais\/2016b86204ea08ebd215.js\"><\/script><noscript>View the code on <a href=\"https:\/\/gist.github.com\/ahmadawais\/2016b86204ea08ebd215\">Gist<\/a>.<\/noscript><\/div>\n<\/div>\n<\/div>\n<section class=\"postcontents wrapper\">\n<h3 id=\"block\">Block<a href=\"#block\" class=\"heading-link\">#<\/a><\/h3>\n<p>Blocks are the components of your website that can be thought of as pieces of reusable HTML. E.g. A sign-up form class called <code>.sign-up-form<\/code><\/p>\n<h3 id=\"element\">Element<a href=\"#element\" class=\"heading-link\">#<\/a><\/h3>\n<p>Elements<code>__<\/code> (double underscore) are the child elements of the block or component. E.g. Sign up form&#8217;s button is an element of sign up form, so it&#8217;s class name would be\u00a0<code>.sign-up-form__button<\/code><\/p>\n<h3 id=\"modifier\">Modifier<a href=\"#modifier\" class=\"heading-link\">#<\/a><\/h3>\n<p>Modifiers\u00a0<code>--<\/code> (double dash) are used to define a modified state of the block. E.g.\u00a0There can be a\u00a0button with multiple variants like <code>.sign-up-form__button--large<\/code> and <code>.sign-up-form__button--small<\/code><\/p>\n<\/section>\n<div class=\"postcontents full dark\">\n<div class=\"wrapper\">\n<h3 id=\"a-simple-example\">A Simple Example<a href=\"#a-simple-example\" class=\"heading-link\">#<\/a><\/h3>\n<div class=\"oembed-gist\"><script src=\"https:\/\/gist.github.com\/ahmadawais\/492f3789f8864ff7380e.js\"><\/script><noscript>View the code on <a href=\"https:\/\/gist.github.com\/ahmadawais\/492f3789f8864ff7380e\">Gist<\/a>.<\/noscript><\/div>\n<p>So,\u00a0here is the breakdown<\/p>\n<ul>\n<li><strong>Block: <\/strong>At line#1<strong>\u00a0<\/strong>Sign up form started with the class <code>.sign-up-form<\/code> which is a block<\/li>\n<li><strong>Elements:\u00a0<\/strong>Input fields are the elements of <em>sign-up-form<\/em> block, so they get classes like <code>.sign-up-form__field<\/code> (line#3, #4)\u00a0and <code>.sign-up-form__button<\/code> (line#6)<\/li>\n<li><strong>Modifier:<\/strong>\u00a0Let&#8217;s assume the end user submitted this form without an email so we need to display the email field with red border color. So, I have added a modifier class which will only change the\u00a0border-color of a field to red. Since this is a modifier class we will use double\u00a0dash in the class name i.e. <code>.sign-up-form__field--red<\/code><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<section class=\"postcontents wrapper\">\n<h2 id=\"conclusion\">Conclusion<a href=\"#conclusion\" class=\"heading-link\">#<\/a><\/h2>\n<p>BEM is\u00a0a really good standard practice. It helps make your CSS more descriptive and in turn you can work better in a team. In the start, BEM might look ugly to you, but give it a try, you will start to like it. You can also <a href=\"http:\/\/csswizardry.com\/2013\/01\/mindbemding-getting-your-head-round-bem-syntax\/\" target=\"_blank\">learn more about BEM<\/a>.<\/p>\n<p>I think it is not just a good standard, but it helps you write better CSS code.\u00a0BEM&#8217;s hierarchical naming convention helps\u00a0a group\/team of developers to understand the structure of a website to work uniformly and with harmony.<\/p>\n<p>Thoughts? How about you comment below or reach out to me at <a href=\"http:\/\/twitter.com\/share?text=BEM CSS Basics for WordPress Theme Developer&amp;url=https:\/\/ahmadawais.com\/?p=1037&amp;via=mrahmadawais\" target=\"_blank\">Twitter<\/a>?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BEM is a logical standard of writing CSS it helps make CSS more Semantic. BEM&#8217;s hierarchical naming convention helps a team of developers to understand the structure of a website to work uniformly and with harmony.<\/p>\n","protected":false},"author":2,"featured_media":1048,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,10],"tags":[97,98],"class_list":["post-1037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-front-end","category-wordpress","tag-bem-css","tag-bem-for-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>BEM CSS Basics for WordPress Themes Developers<\/title>\n<meta name=\"description\" content=\"BEM is a logical standard of CSS, if you are a WordPess Theme Developer you should learn BEM CSS for WordPress, it helps make CSS Semantic\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BEM CSS Basics for WordPress Themes Developers\" \/>\n<meta property=\"og:description\" content=\"BEM is a logical standard of CSS, if you are a WordPess Theme Developer you should learn BEM CSS for WordPress, it helps make CSS Semantic\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/\" \/>\n<meta property=\"og:site_name\" content=\"Ahmad Awais\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-01T19:37:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-01T19:38:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/BEM-CSS-WordPress_AhmadAwais2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"850\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ahmad Awais\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:site\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ahmad Awais\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/\"},\"author\":{\"name\":\"Ahmad Awais\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"headline\":\"BEM CSS Basics for WordPress Themes Developers\",\"datePublished\":\"2015-10-01T19:37:58+00:00\",\"dateModified\":\"2015-10-01T19:38:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/\"},\"wordCount\":666,\"commentCount\":12,\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/BEM-CSS-WordPress_AhmadAwais2.jpg\",\"keywords\":[\"BEM CSS\",\"BEM for WordPress\"],\"articleSection\":[\"Front-end\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/\",\"name\":\"BEM CSS Basics for WordPress Themes Developers\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/BEM-CSS-WordPress_AhmadAwais2.jpg\",\"datePublished\":\"2015-10-01T19:37:58+00:00\",\"dateModified\":\"2015-10-01T19:38:01+00:00\",\"description\":\"BEM is a logical standard of CSS, if you are a WordPess Theme Developer you should learn BEM CSS for WordPress, it helps make CSS Semantic\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/BEM-CSS-WordPress_AhmadAwais2.jpg\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/BEM-CSS-WordPress_AhmadAwais2.jpg\",\"width\":1600,\"height\":850},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/bem-css-basics-for-wordpress-themes-developers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ahmadawais.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"BEM CSS Basics for WordPress Themes Developers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/\",\"name\":\"Ahmad Awais\",\"description\":\"Founder &amp; CEO of CommandCode.ai f\\\/k\\\/a Langbase | Google Developers Advisory Board (gDAB) founding member\",\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ahmadawais.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\",\"name\":\"Ahmad Awais\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"width\":2299,\"height\":1705,\"caption\":\"Ahmad Awais\"},\"logo\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\"},\"description\":\"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \\\"Awais is an awesome example for developers\\\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\\\/ML\\\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\\\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.\",\"sameAs\":[\"https:\\\/\\\/AhmadAwais.com\\\/\",\"https:\\\/\\\/facebook.com\\\/AhmadAwais\",\"https:\\\/\\\/instagram.com\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/x.com\\\/MrAhmadAwais\",\"https:\\\/\\\/youtube.com\\\/AhmadAwais\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"BEM CSS Basics for WordPress Themes Developers","description":"BEM is a logical standard of CSS, if you are a WordPess Theme Developer you should learn BEM CSS for WordPress, it helps make CSS Semantic","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/","og_locale":"en_US","og_type":"article","og_title":"BEM CSS Basics for WordPress Themes Developers","og_description":"BEM is a logical standard of CSS, if you are a WordPess Theme Developer you should learn BEM CSS for WordPress, it helps make CSS Semantic","og_url":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/","og_site_name":"Ahmad Awais","article_publisher":"https:\/\/facebook.com\/AhmadAwais","article_author":"https:\/\/facebook.com\/AhmadAwais","article_published_time":"2015-10-01T19:37:58+00:00","article_modified_time":"2015-10-01T19:38:01+00:00","og_image":[{"width":1600,"height":850,"url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/BEM-CSS-WordPress_AhmadAwais2.jpg","type":"image\/jpeg"}],"author":"Ahmad Awais","twitter_card":"summary_large_image","twitter_creator":"@MrAhmadAwais","twitter_site":"@MrAhmadAwais","twitter_misc":{"Written by":"Ahmad Awais","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#article","isPartOf":{"@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/"},"author":{"name":"Ahmad Awais","@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"headline":"BEM CSS Basics for WordPress Themes Developers","datePublished":"2015-10-01T19:37:58+00:00","dateModified":"2015-10-01T19:38:01+00:00","mainEntityOfPage":{"@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/"},"wordCount":666,"commentCount":12,"publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"image":{"@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/BEM-CSS-WordPress_AhmadAwais2.jpg","keywords":["BEM CSS","BEM for WordPress"],"articleSection":["Front-end","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/","url":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/","name":"BEM CSS Basics for WordPress Themes Developers","isPartOf":{"@id":"https:\/\/ahmadawais.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#primaryimage"},"image":{"@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/BEM-CSS-WordPress_AhmadAwais2.jpg","datePublished":"2015-10-01T19:37:58+00:00","dateModified":"2015-10-01T19:38:01+00:00","description":"BEM is a logical standard of CSS, if you are a WordPess Theme Developer you should learn BEM CSS for WordPress, it helps make CSS Semantic","breadcrumb":{"@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#primaryimage","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/BEM-CSS-WordPress_AhmadAwais2.jpg","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/BEM-CSS-WordPress_AhmadAwais2.jpg","width":1600,"height":850},{"@type":"BreadcrumbList","@id":"https:\/\/ahmadawais.com\/bem-css-basics-for-wordpress-themes-developers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ahmadawais.com\/"},{"@type":"ListItem","position":2,"name":"BEM CSS Basics for WordPress Themes Developers"}]},{"@type":"WebSite","@id":"https:\/\/ahmadawais.com\/#website","url":"https:\/\/ahmadawais.com\/","name":"Ahmad Awais","description":"Founder &amp; CEO of CommandCode.ai f\/k\/a Langbase | Google Developers Advisory Board (gDAB) founding member","publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ahmadawais.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b","name":"Ahmad Awais","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","width":2299,"height":1705,"caption":"Ahmad Awais"},"logo":{"@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg"},"description":"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \"Awais is an awesome example for developers\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\/ML\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.","sameAs":["https:\/\/AhmadAwais.com\/","https:\/\/facebook.com\/AhmadAwais","https:\/\/instagram.com\/MrAhmadAwais\/","https:\/\/www.linkedin.com\/in\/MrAhmadAwais\/","https:\/\/x.com\/MrAhmadAwais","https:\/\/youtube.com\/AhmadAwais"]}]}},"jetpack_featured_media_url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2015\/10\/BEM-CSS-WordPress_AhmadAwais2.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/1037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/comments?post=1037"}],"version-history":[{"count":0,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/1037\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media\/1048"}],"wp:attachment":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media?parent=1037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/categories?post=1037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/tags?post=1037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}