{"id":91,"date":"2019-03-12T14:36:38","date_gmt":"2019-03-12T14:36:38","guid":{"rendered":"http:\/\/localhost\/wordpress\/lore-demo\/?post_type=lsvr_kba&amp;p=91"},"modified":"2019-03-12T14:36:38","modified_gmt":"2019-03-12T14:36:38","slug":"colors","status":"publish","type":"lsvr_kba","link":"https:\/\/help.letterhub.com\/index.php\/knowledge-base\/colors\/","title":{"rendered":"Colors"},"content":{"rendered":"\n\t\t\t\t\n<p>Theme colors can be managed under <em>Appearance \/ Customize \/ Colors<\/em>. You can either choose from predefined color schemes, pick your custom colors or create your own color scheme. The difference between <em>Custom Colors<\/em> and <em>Custom Scheme<\/em> is that the latter is much more involved and requires some coding. On the other hand, it gives you more freedom and it is the <strong>recommended way for customizing theme&#8217;s colors<\/strong>.<\/p>\n\n\n\n<p>Since the <em>Predefined Scheme<\/em> and <em>Custom Colors<\/em> options should be pretty much self-explanatory, let&#8217;s describe the process of <strong>creating your own custom color scheme<\/strong>.<\/p>\n\n\n\n<p>1.) Open <em>http:\/\/<\/em><strong><em>yoursite.<\/em><\/strong><em>com\/wp-content\/themes\/lore\/assets\/css\/skins\/default.scss<\/em> file. It should open directly in your browser, but some browsers may download it on your disk instead.<br>If you are not able to access the file on your own installation, simply unpack the <em>lore.zip<\/em> installation file (please see the <a href=\"http:\/\/localhost\/wordpress\/lore-demo\/knowledge-base\/theme-installation\/\">Theme Installation<\/a> chapter to learn how to obtain it) and you will find the <em>default.scss<\/em> file under <em>assets \/ css \/ skins<\/em> folder.<\/p>\n\n\n\n<p>2.) Copy all the code from that file to any text editor. If your browser downloaded your file, open that file in the text editor. You can use for example <a rel=\"noreferrer noopener\" aria-label=\"Notepad++ (opens in a new tab)\" href=\"https:\/\/notepad-plus-plus.org\/\" target=\"_blank\">Notepad++<\/a> for Windows or <a rel=\"noreferrer noopener\" aria-label=\"Brackets (opens in a new tab)\" href=\"http:\/\/brackets.io\/\" target=\"_blank\">Brackets<\/a> for Mac, but any basic text editor (for example Windows Notepad) should do.<\/p>\n\n\n\n<p>3.) Make your changes. Basically you just need to change color variables at the top of the file. The most important one is <em>$accent1<\/em> variable on line 28. By default, it look like this: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$accent1: #74aa7b; \/\/ primary accent color<\/pre>\n\n\n\n<p>There are many online tools where you can generate a hex code for your color, for example <a rel=\"noreferrer noopener\" aria-label=\"colorpicker.com (opens in a new tab)\" href=\"http:\/\/www.colorpicker.com\/\" target=\"_blank\">colorpicker.com<\/a>. Just change #xxxxxx to the hex code of your custom color (don&#8217;t forget that it has to start with the # sign). Feel free to change values of other color variables in the file as well.<\/p>\n\n\n\n<p>4.) Once you&#8217;ve made your changes, copy the whole code and paste it to the SASS column on <a rel=\"noreferrer noopener\" aria-label=\"sassmeister.com (opens in a new tab)\" href=\"http:\/\/www.sassmeister.com\/\" target=\"_blank\">sassmeister.com<\/a> (or any other online SASS to CSS convertor). Please note that <strong>any typo in your syntax may lead to an error<\/strong>.<\/p>\n\n\n\n<p>5.) Copy the generated code from the CSS column.<\/p>\n\n\n\n<p>6.) Make sure the child theme is active under <em>Appearance \/ Themes<\/em>.<\/p>\n\n\n\n<p>7.) Go to <em>Appearance \/ Editor<\/em>, set <em>Select theme to edit<\/em>: to <em>Lore Child<\/em> and paste your generated CSS after the &#8220;\/* Add your custom css after this comment *\/&#8221; comment. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><a class=\"lsvr-open-in-lightbox\" href=\"http:\/\/localhost\/wordpress\/lore-demo\/wp-content\/uploads\/sites\/13\/2019\/03\/colors-10.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"http:\/\/localhost\/wordpress\/lore-demo\/wp-content\/uploads\/sites\/13\/2019\/03\/colors-10.jpg\" alt=\"\" class=\"wp-image-335\"\/><\/a><figcaption>1. Make sure Lore Child theme is selected<br>2. Select the stylesheet file<br>3. Put your CSS here and save your changes<\/figcaption><\/figure>\n\n\n\n<p>8.) Next, repeat all the steps but now with the <strong>default editor color scheme file<\/strong> &#8211; <em>http:\/\/<\/em><strong><em>yoursite.com<\/em><\/strong><em>\/wp-content\/themes\/lore\/assets\/css\/skins\/default.editor.scss<\/em>. Again, if you are not able to access it on your installation, unzip the <em>lore.zip<\/em> file and you will find it under <em>assets \/ css \/ skins<\/em> folder.<\/p>\n\n\n\n<p>9.) <strong>There is one difference<\/strong> though, the final generated editor CSS code have to be pasted into <em>editor-style.css<\/em> file instead (which is also accessible under <em>Appearance \/ Editor<\/em>).<\/p>\n\n\n\n<p>10.) Last step: go to <em>Appearance \/ Customizer \/ Colors<\/em>, switch <em><strong>Set Colors By<\/strong><\/em> option to <strong><em>Custom Scheme<\/em><\/strong> and save.<\/p>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Theme colors can be managed under Appearance \/ Customize \/ Colors. You can either choose from predefined color schemes, pick your custom colors or create your own color scheme. The difference between Custom Colors and Custom Scheme is that the latter is much more involved and requires some coding. On the other hand, it gives [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"lsvr_kba_cat":[12],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba\/91"}],"collection":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":0,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba\/91\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba_cat?post=91"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/help.letterhub.com\/index.php\/wp-json\/wp\/v2\/lsvr_kba_tag?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}