{"id":545,"date":"2014-09-08T10:31:00","date_gmt":"2014-09-08T09:31:00","guid":{"rendered":"http:\/\/www.pitss.org\/blog\/?guid=1f0b81e0a8594f7b9ecd1eef95f7d7df"},"modified":"2014-09-08T10:31:00","modified_gmt":"2014-09-08T09:31:00","slug":"how-to-use-font-awesome-in-oracle-apex","status":"publish","type":"post","link":"https:\/\/pitss.org\/de\/how-to-use-font-awesome-in-oracle-apex\/","title":{"rendered":"How to use Font Awesome in Oracle Apex"},"content":{"rendered":"<p>I will show to you how to use Font Awesome icons in APEX on login page like this <\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/3.bp.blogspot.com\/-1__R4tSiWcQ\/VA1yFYLSFiI\/AAAAAAAAAI0\/6fnDNtsBwtU\/s1600\/icon1.png\" style=\"margin-left: 1em;margin-right: 1em\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-1__R4tSiWcQ\/VA1yFYLSFiI\/AAAAAAAAAI0\/6fnDNtsBwtU\/s1600\/icon1.png\" height=\"139\" width=\"320\" \/><\/a><\/div>\n<p>1. At first you must download Font Awsome from page <a href=\"http:\/\/fortawesome.github.io\/Font-Awesome\/\">http:\/\/fortawesome.github.io\/Font-Awesome\/<\/a><\/p>\n<p>2. Extract zip file into ..imagesthemestheme_xx (xx is number of theme that you use). In this example I use theme 26<\/p>\n<p>3. Open css file of theme in my case that is 4_2.css from ..imagesthemestheme_26css and put at the begining of&nbsp; the code:<br \/><span style=\"font-size: x-small\"><br \/><\/span><span style=\"font-size: x-small\"><i>@font-face {<br \/>&nbsp; font-family: &#8218;FontAwesome&#8216;;<br \/>&nbsp; src: url(&#8218;..\/font-awesome-4.2.0\/fonts\/fontawesome-webfont.eot?v=4.0.3&#8216;);<br \/>&nbsp; src: url(&#8218;..\/font-awesome-4.2.0\/fonts\/fontawesome-webfont.eot?#iefix&amp;v=4.0.3&#8216;) format(&#8218;embedded-opentype&#8216;), url(&#8218;..\/font-awesome-4.2.0\/fonts\/fontawesome-webfont.woff?v=4.0.3&#8216;) format(&#8218;woff&#8216;), url(&#8218;..\/font-awesome-4.2.0\/fonts\/fontawesome-webfont.ttf?v=4.0.3&#8216;) format(&#8218;truetype&#8216;), url(&#8218;..\/font-awesome-4.2.0\/fonts\/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular&#8216;) format(&#8217;svg&#8216;);<br \/>&nbsp; font-weight: normal;<br \/>&nbsp; font-style: normal;<br \/>}<\/i><\/span><\/p>\n<p>4. Save the file and then go to your apex application and in page 101 definition go to CSS section inline field paste this code:<\/p>\n<p><i><span style=\"font-size: x-small\">div#uLoginContainer section.uRegion div.uRegionContent table.formlayout td input.text_field [type=&#8220;text&#8220;] {<br \/>&nbsp;&nbsp;&nbsp; position: relative; <br \/>}<\/p>\n<p>div#uLoginContainer section.uRegion div.uRegionContent table.formlayout td input{ font-family: &#8218;FontAwesome&#8216;; } \/* This is for the placeholder *\/<\/p>\n<p>div#uLoginContainer section.uRegion div.uRegionContent table.formlayout td input.text_field:before {<br \/>&nbsp;&nbsp;&nbsp; font-family: &#8218;FontAwesome&#8216;;<br \/>&nbsp;&nbsp;&nbsp; position: absolute;<br \/>&nbsp;&nbsp;&nbsp; top: 0px;<br \/>&nbsp;&nbsp;&nbsp; left: -5px;<br \/>&nbsp;&nbsp;&nbsp; content: &#8222;f007&#8220;;<br \/>}<\/p>\n<p>div#uLoginContainer section.uRegion div.uRegionContent table.formlayout td input.password[type=&#8220;password&#8220;] {<br \/>&nbsp;&nbsp;&nbsp; position: relative; <br \/>}<\/p>\n<p>div#uLoginContainer section.uRegion div.uRegionContent table.formlayout td input{ font-family: &#8218;FontAwesome&#8216;; } \/* This is for the placeholder *\/<\/p>\n<p>div#uLoginContainer section.uRegion div.uRegionContent table.formlayout td input.password:before {<br \/>&nbsp;&nbsp;&nbsp; font-family: &#8218;FontAwesome&#8216;;<br \/>&nbsp;&nbsp;&nbsp; position: absolute;<br \/>&nbsp;&nbsp;&nbsp; top: 0px;<br \/>&nbsp;&nbsp;&nbsp; left: -5px;<br \/>&nbsp;&nbsp;&nbsp; content: &#8222;f023&#8220;;<br \/>}<\/span><\/i><\/p>\n<p>5. Click on Apply changes and then open P101_USERNAME and put in &#8222;HTML Form Element Attributes&#8220; field this code:<i><span style=\"font-size: x-small\"> placeholder=&#8220;&amp;#f023; Username&#8220;<\/span><\/i><\/p>\n<p>6. Then you will do same step for P101_PASSWORD like step before, except you will put in &#8222;HTML Form Element Attributes&#8220; field this code:<span style=\"font-size: x-small\"><i> placeholder=&#8220;&#xF023; Password&#8220;<\/i><\/span>.<br \/>7. Click on apply changes and then run the page and you will get the result as in the image above.<span class=\"short_text\" id=\"result_box\" lang=\"en\"><span class=\"hps\"><\/span><\/span><span class=\"short_text\" id=\"result_box\" lang=\"en\"><\/span><br \/><span class=\"short_text\" id=\"result_box\" lang=\"en\"><span class=\"hps\"><\/span><\/span><span class=\"short_text\" id=\"result_box\" lang=\"en\"><span class=\"hps\"> <\/span><\/span><br \/><span class=\"short_text\" id=\"result_box\" lang=\"en\"><span class=\"hps\"><\/span><\/span><span class=\"short_text\" id=\"result_box\" lang=\"en\"><span class=\"hps\"><span class=\"short_text\" id=\"result_box\" lang=\"en\"><span class=\"hps\">If<\/span> <span class=\"hps\">you have any questions<\/span> <span class=\"hps\">feel free to ask<\/span><span class=\"\">!<\/span><\/span> <\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I will show to you how to use Font Awesome icons in APEX on login page like this 1. At first you must download Font Awsome from page http:\/\/fortawesome.github.io\/Font-Awesome\/2. Extract zip file into ..imagesthemestheme_xx (xx is number of theme th&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-545","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/comments?post=545"}],"version-history":[{"count":0,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/545\/revisions"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/media?parent=545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/categories?post=545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/tags?post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}