{"id":286,"date":"2014-04-20T02:38:50","date_gmt":"2014-04-20T01:38:50","guid":{"rendered":"https:\/\/stevepedwards.today\/DebianAdmin\/?p=286"},"modified":"2023-10-28T20:24:47","modified_gmt":"2023-10-28T19:24:47","slug":"simple-wordpress-css-text-size-and-color-tweaks","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/DebianAdmin\/simple-wordpress-css-text-size-and-color-tweaks\/","title":{"rendered":"Simple WordPress CSS Text Size and Color Tweaks"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_286\" class=\"pvc_stats all  \" data-element-id=\"286\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>This isn't really Linux stuff directly, but is PHP and HTML coding related and found in some scripts like Apache confs maybe, so good to understand a little if you have never done an old fashioned HTML web page before.<\/p>\n<p>Having spent a lot of time on Blog stuff lately, I thought I would put a couple of things that I found that may help people overall like the finer points of design of your WordPress page.<\/p>\n<p>The nastiest area for fine tuning is the CSS PHP Editor which looks a bit intimidating to non-programmers but can make a huge difference to your site, and I found some sections that let me change the colour of some main body text ( a crappy light grey to readable black) and green links in the main menu bar.<\/p>\n<p>Before you change anything, play safe and copy the whole script to your PC so if you mess up you can replace the original.<\/p>\n<p>Go to your WP Editor menu:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2014\/04\/042014_0138_SimpleWordp1.png\" alt=\"\" \/><\/p>\n<p>Select all the text inside (Ctrl-A), copy and paste it into a Notepad, Word, or Libre document and save it somewhere safe.<\/p>\n<p>To change some colors (note US spelling) you can press F3 and type \"color\" and it will highlight all the places there is a hex number for a colour code, so scroll down and look:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2014\/04\/042014_0138_SimpleWordp2.png\" alt=\"\" \/><\/p>\n<p>It's not obvious where all the text relates to your actual page and a bit of trial and error may be involved (hence the backup you made), but the main header menu texts I just changed green to match my links, and made a bit larger from 12px to 14px, is in the Top Level Anchors section:<\/p>\n<p>\/** Top Level Anchors *\/<\/p>\n<p>.menu1 ul a,<\/p>\n<p>.menu1 ul a:visited {<\/p>\n<p>display: block;<\/p>\n<p>font-size: <strong>14px;<\/strong><\/p>\n<p>position: relative;<\/p>\n<p>padding: 20px 16px 20px 0;<\/p>\n<p>text-decoration: none;<\/p>\n<p>color: <strong>#009933<\/strong>;<\/p>\n<p>Find the HTML hex color to code value you want at:<\/p>\n<p><a href=\"https:\/\/www.w3schools.com\/tags\/ref_colorpicker.asp\">https:\/\/www.w3schools.com\/tags\/ref_colorpicker.asp<\/a><\/p>\n<p>or similar site. Use it to find what colors are used where in the script and try to find where on the Blog page they relate.<\/p>\n<p>As you see, my link color #009933 is sea greenish that I use for links (Post titles) and the Top menu:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2014\/04\/042014_0138_SimpleWordp3.png\" alt=\"\" \/><\/p>\n<p>Copy that code and paste it to the section you want to change click the Update File button and reload your main Blog page to see what you did.<\/p>\n<p>If you really mess up, Select All again and re-paste your backup and try again. Maybe just do one color at a time to be sure it works.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_286\" class=\"pvc_stats all  \" data-element-id=\"286\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>This isn't really Linux stuff directly, but is PHP and HTML coding related and found in some scripts like Apache confs maybe, so good to understand a little if you have never done an old fashioned HTML web page before. Having spent a lot of time on Blog stuff lately, I thought I would put <a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/simple-wordpress-css-text-size-and-color-tweaks\/\" class=\"more-link\">...<span class=\"screen-reader-text\">\u00a0 Simple WordPress CSS Text Size and Color Tweaks<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"a3_pvc":{"activated":true,"total_views":1,"today_views":0},"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/comments?post=286"}],"version-history":[{"count":1,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":9998,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/286\/revisions\/9998"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/media?parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/categories?post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/tags?post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}