{"id":15644,"date":"2022-05-05T12:30:00","date_gmt":"2022-05-05T19:30:00","guid":{"rendered":"https:\/\/devwww.3cloudsolutions.com\/post\/create-a-custom-theme-with-an-image-background-3\/"},"modified":"2023-10-04T10:17:02","modified_gmt":"2023-10-04T17:17:02","slug":"create-a-custom-theme-with-an-image-background","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/create-a-custom-theme-with-an-image-background\/","title":{"rendered":"Create a Custom Theme with an Image Background"},"content":{"rendered":"<p>While there are settings that you can customize through the menu system in Power BI for a custom theme, one of the settings you cannot edit is to add a default background image to your pages. Here are 5 easy steps to create a theme that incorporates a background image for each page.<br \/>\n<span style=\"font-weight: bold;\"><!--more--><\/span><\/p>\n<p style=\"font-weight: bold;\"><img decoding=\"async\" style=\"width: 1000px;\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/iStock-1315757363-1.jpg\" alt=\"iStock-1315757363-1\" width=\"1000\" \/><\/p>\n<p><span style=\"font-weight: bold;\">1. Customize the default theme with your colors, fonts, etc.<\/span><\/p>\n<p><span style=\"font-weight: bold;\"><img decoding=\"async\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/image-png-May-03-2022-05-21-22-51-PM.png\" \/><\/span><\/p>\n<p style=\"font-weight: bold;\"><img decoding=\"async\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/image-png-May-03-2022-05-21-37-93-PM.png\" \/><\/p>\n<p><span style=\"font-weight: bold;\">2. Export the customized theme.<\/span><\/p>\n<p style=\"font-weight: bold;\"><img decoding=\"async\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/image-png-May-03-2022-05-24-52-60-PM.png\" \/><\/p>\n<p style=\"font-weight: normal;\">Save the theme as a JSON file.<\/p>\n<p><span style=\"font-weight: bold;\">3. Encode the background image you want to use in Base64. <\/span><\/p>\n<p>Here is a site that will do it for you: <a style=\"font-weight: normal;\" href=\"https:\/\/www.browserling.com\/tools\/image-to-base64\">Image to Base64 Converter &#8211; Encode Images to Base64 &#8211; Online &#8211; Browserling Web Developer Tools<\/a><\/p>\n<p style=\"font-weight: normal;\">I took our default slide master in PowerPoint, added the logo, and saved as PNG. Then I took that file and used the above site to encode as Base64. <a href=\"\/hubfs\/BGTheme.json\" rel=\"noopener\">Here&#8217;s the final JSON file I used<\/a> if you&#8217;d like to utilize it as well.<\/p>\n<p><span style=\"font-weight: bold;\">4. Open the JSON theme in a text editor. <\/span><\/p>\n<p>Add the following snippet to the \u201cvisualStyles\u201d section of the JSON theme you saved in Step 2:<\/p>\n<p style=\"font-weight: normal;\">&#8220;page&#8221;: {<\/p>\n<p style=\"font-weight: normal;\">&#8220;*&#8221;: {<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;background&#8221;: [<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 {<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;image&#8221;: {<\/p>\n<p style=\"font-weight: bold;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;name&#8221;: &#8220;&lt;&gt;&#8221;,<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;scaling&#8221;: &#8220;Fit&#8221;,<\/p>\n<p style=\"font-weight: bold;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;url&#8221;: &#8220;data:image\/jpeg;base64,&lt;&gt;&#8221;<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;transparency&#8221;: 0<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 }<\/p>\n<p style=\"font-weight: normal;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ]<\/p>\n<p style=\"font-weight: normal;\">}<\/p>\n<p style=\"font-weight: normal;\">}<\/p>\n<p style=\"font-weight: normal;\">Everything between the \u201c&lt;&lt;\u201d and the \u201c&gt;&gt;\u201d needs to be replaced including the \u201c&lt;&lt;\u201d\/\u201d&gt;&gt;\u201d.<\/p>\n<h4 style=\"font-weight: bold;\"><\/h4>\n<p><span style=\"font-weight: bold;\">5. Browse and import the updated theme. <\/span><\/p>\n<p><span style=\"font-weight: normal;\">Here\u2019s what the BGTheme looks like with a blank page in Power BI:<\/span><\/p>\n<p style=\"font-weight: bold;\"><img decoding=\"async\" src=\"https:\/\/3cloudsolutions.com\/wp-content\/uploads\/2022\/10\/image-png-May-03-2022-05-36-07-16-PM.png\" \/><\/p>\n<p style=\"font-weight: normal;\">There are many other customizable settings you can specify in a custom theme that aren\u2019t exposed thru the \u201cCustomize current theme\u201d option from the View menu. You can go so far as to customize the look-and-feel of each individual visualization type.<\/p>\n<h3 style=\"font-weight: normal;\"><span style=\"color: #007cba;\">In Conclusion<\/span><\/h3>\n<p style=\"font-weight: normal;\">If you need help don\u2019t hesitate to contact us here at 3Cloud! And join us for Power BI Office Hours each month to learn even more! If you need advice and guidance on the current standing or future enhancements of your setup, let 3Cloud offer some words of wisdom, <a href=\"https:\/\/3cloudsolutions.com\/get-started\/\" rel=\" noopener\">contact us<\/a> today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While there are settings that you can customize through the menu system in Power BI for a custom theme, one of the settings you cannot edit is to add a default background image to your pages. Here are 5 easy steps to create a theme that incorporates a background image for each page.<\/p>\n","protected":false},"author":21,"featured_media":12217,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[394,260],"tags":[303,305],"class_list":["post-15644","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-intelligence","category-data-ai","tag-modern-analytics","tag-modern-bi","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=15644"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/15644\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media\/12217"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=15644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=15644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=15644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}