{"id":8352,"date":"2018-05-13T13:25:23","date_gmt":"2018-05-13T13:25:23","guid":{"rendered":"https:\/\/kriesi.at\/documentation\/enfold\/?p=8352"},"modified":"2023-09-04T08:09:19","modified_gmt":"2023-09-04T08:09:19","slug":"personalize-theme","status":"publish","type":"post","link":"https:\/\/kriesi.at\/documentation\/enfold\/personalize-theme\/","title":{"rendered":"Personalize theme"},"content":{"rendered":"<section  class='av_textblock_section av-5dkw6x-29b383dd7ba306e3676328221331f6ac '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h2>Personalize your theme<\/h2>\n<\/div><\/section>\n<div  class='hr av-56527t-bcf5d64a0c341206bc9d63d5c8372b0c hr-default  avia-builder-el-1  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-5329sh-a3e9bbfd5a6613f3d2bd25a411ecd9d1 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h3>Remove Avia Framework debug information<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-4tiyzt-07ea119f702402d824a7f13dc7e1e841 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>By default the theme\u2019s framework outputs a bit of debugging information into the source code of your site. This is similar to how many caching plugins will show the date of the most recent save and how much time it took to generate the page.<\/p>\n<p>It will look something like this:<\/p>\n<\/div><\/section>\n\n<section  class='av_textblock_section av-4j9fr5-334530e389de7973b6a7cd463b9ce4ce '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>If you are using version 4.3 or higher please use the below code in your functions.php file.<\/p>\n<\/div><\/section>\n\n<section  class='av_textblock_section av-4j9fr5-334530e389de7973b6a7cd463b9ce4ce '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>For Enfold version older than 4.3 please use the below code\u00a0in your<strong> functions.php:<\/strong><\/p>\n<pre><code>remove_action('wp_head','avia_debugging_info',1000);<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-4ghr0p-1dd3e551e686159dd161d3dbfb0ee2ed hr-default  avia-builder-el-8  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-49idmx-96ff2af06bbeae226c73e16087f01948 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h3>Change the Dynamic CSS filename<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-43g7gx-0cc98a564ef8efbb02ab7120a13036f6 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>All of the Styling options you set in the theme\u2019s Styling options are saved to a file in your uploads folder called enfold.css. If you have changed the theme name or something like that you may want to rename this file to better reflect your own branding. You can use the following function to do just that:<\/p>\n<pre>add_filter('avf_dynamic_stylesheet_filename', 'avia_change_filename');\r\nfunction avia_change_filename(){\r\n    return 'custom_name';\r\n}<\/pre>\n<p><strong>Note:<\/strong>\u00a0Once you apply this code remember to re-save you Theme Options to generate the new dynamic CSS file.<\/p>\n<\/div><\/section>\n<div  class='hr av-drlm1-66e4ca3f60f205d110d956084d4fd2bf hr-default  avia-builder-el-11  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-3pp8sp-5d2cb7dbc9ab3b4d54684be26d9f987b '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h3>Change icon used for standard theme elements<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-3pp8sp-5d2cb7dbc9ab3b4d54684be26d9f987b '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>The theme has a set of icons defined for theme elements in the main functions.php file in your theme files. They are the icon codes from the entypo-fontello font file that is included in the theme to show all of the various icons used throughout the theme. They array of named instances and their icon codes start just after:<\/p>\n<pre><code>$avia_config['font_icons'] = apply_filters('avf_default_icons', array(\r\n<\/code><\/pre>\n<p>If you are modifying the main theme you can just change the values for the icon. If you are using a child theme however you can change them through a function.<\/p>\n<p>For example:<\/p>\n<pre><code>add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1);\r\n\r\nfunction avia_replace_standard_icon($icons)\r\n{\r\n$icons['standard'] = array( 'font' =&gt;'entypo-fontello', 'icon' =&gt; 'ue915');\r\nreturn $icons;\r\n}<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-drlm1-66e4ca3f60f205d110d956084d4fd2bf hr-default  avia-builder-el-14  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-3pp8sp-9e008ee90263dc1d14138d4b7f6d976b '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h3>Remove the Import Dummy Data button<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-3ir461-37c100dcd33d7a19305f7fd4ce56d293 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>After you\u2019ve set your site up you may want to remove the Import Dummy Data button in the main theme settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7118\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2017\/03\/import-data-e1520788853398.png\" alt=\"\" width=\"1033\" height=\"509\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2017\/03\/import-data-e1520788853398.png 1033w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2017\/03\/import-data-e1520788853398-300x148.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2017\/03\/import-data-e1520788853398-768x378.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2017\/03\/import-data-e1520788853398-1030x508.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2017\/03\/import-data-e1520788853398-705x347.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2017\/03\/import-data-e1520788853398-450x222.png 450w\" sizes=\"auto, (max-width: 1033px) 100vw, 1033px\" \/><br \/><strong>To remove the \u201cImport Dummy Content\u201d button from the theme options, add this function to your functions.php or child theme\u2019s functions.php:<\/strong><\/p>\n<pre><code>add_theme_support('avia_disable_dummy_import');\r\n<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-3eww35-ecceffee4969f55df0acffc4d3191d3a hr-default  avia-builder-el-17  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-3pp8sp-4348d780ce648a15fde4bc69985d8156 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h3>Remove Enfold tab from WP dashboard<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-3ir461-831d132fd67a40beb1c8b64629d982fd '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>You can add following code to bottom of Functions.php file of your child theme in Appearance &gt; Editor to remove Enfold tab from WP dashboard<\/p>\n<pre><code>\r\nadd_action( 'admin_init', function () {remove_menu_page( 'avia' );}); \/\/ Hide Enfold tab in WordPress dashboard\r\n<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-3eww35-ecceffee4969f55df0acffc4d3191d3a hr-default  avia-builder-el-20  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-3pp8sp-4348d780ce648a15fde4bc69985d8156 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h3>Remove Theme Options and Theme Extensions from WP admin bar<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-3ir461-831d132fd67a40beb1c8b64629d982fd '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>You can add following code to bottom of Functions.php file of your child theme in Appearance &gt; Editor to remove Theme Options and Theme Extensions from WP admin bar<\/p>\n<pre><code>\r\nadd_action( 'admin_bar_menu', function ( $wp_admin_bar ) { $wp_admin_bar-&gt;remove_node( 'avia' );}, 999 ); \/\/ Hide Theme Options in Admin Bar\r\nadd_action( 'admin_bar_menu', function ( $wp_admin_bar ) { $wp_admin_bar-&gt;remove_node( 'avia_ext' );}, 999 ); \/\/ Hide Theme Extensions in Admin Bar\r\n<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-3eww35-ecceffee4969f55df0acffc4d3191d3a hr-default  avia-builder-el-23  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lm4lhtwr-f2be563bdf22f76c1d09440cfb8a0919 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><h3>Custom Templates for Custom Post Types<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-lm4loxba-d4aaab8259ff001f36fe3082aebed1fa '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock h-tag'  itemprop=\"text\" ><p>Starting from WordPress 4.7, custom templates are not limited to the &#8220;page&#8221; post type.<\/p>\n<p>To enable custom templates on your custom post types, you&#8217;ll need to add a <code class=\"php comments\">Template Post Type<\/code> file header to your template files as the following:<\/p>\n<pre><code>\r\n\/*\r\nTemplate Name: Full-width layout (Rename to appropriate template name)\r\nTemplate Post Type: post, page, (insert your new CPTs here)\r\n*\/\r\n<\/code><\/pre>\n<p>You can read more about this at <a href=\"https:\/\/make.wordpress.org\/core\/2016\/11\/03\/post-type-templates-in-4-7\/\">https:\/\/make.wordpress.org\/core\/2016\/11\/03\/post-type-templates-in-4-7\/<\/a>.<\/p>\n<\/div><\/section>\n<div  class='hr av-av_hr-24d9b57a56e73600b2072fcf54ff5ead hr-default  avia-builder-el-26  el_after_av_textblock  avia-builder-el-last '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[2,12],"tags":[],"class_list":["post-8352","post","type-post","status-publish","format-standard","hentry","category-documentation","category-explore","documentation","explore"],"modified_by":"Yigit","_links":{"self":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/8352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/comments?post=8352"}],"version-history":[{"count":4,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/8352\/revisions"}],"predecessor-version":[{"id":13596,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/8352\/revisions\/13596"}],"wp:attachment":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/media?parent=8352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/categories?post=8352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/tags?post=8352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}