{"id":497,"date":"2010-10-03T14:29:34","date_gmt":"2010-10-03T12:29:34","guid":{"rendered":"http:\/\/www.kavdesign.net\/blog\/?p=497"},"modified":"2010-10-03T14:47:52","modified_gmt":"2010-10-03T12:47:52","slug":"how-to-change-the-home-link-on-the-main-wordpress-menu-to-something-else","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-change-the-home-link-on-the-main-wordpress-menu-to-something-else\/","title":{"rendered":"How to rename the home link on the main wordpress menu to something else?"},"content":{"rendered":"<p>If you are using thematic child theme go to thematic-functions.php file in your child theme and add this:<\/p>\n<pre>\/\/\u00a0\u00a0 \u00a0Add a Home link to your menu\r\nfunction childtheme_menu_args($args) {\r\n$args = array(\r\n'show_home' =&gt; 'Home',\u00a0 \/\/here change Home to whatever you like\r\n'sort_column' =&gt; 'menu_order',\r\n'menu_class' =&gt; 'menu',\r\n'echo' =&gt; true\r\n);\r\nreturn $args;\r\n}\r\nadd_filter('wp_page_menu_args','childtheme_menu_args');<\/pre>\n<p><!--more--><br \/>\nIf you have this function just change it&#8230; But if you need to convert the file to utf8 (if the link should be renamed in Cyrillic for example) it&#8217;s better to use the second way down because otherise you are going to see strange symbols when you are reloading your wordpress pages<\/p>\n<p>Additionaly you could open your functions.php file and add this:<\/p>\n<pre><code>function change_home($menu_text) {\r\nreturn preg_replace('\/&gt;Home&lt;\/', '&gt;Blog&lt;', $menu_text, 1);\r\n}\r\nadd_filter('wp_page_menu','change_home');\r\n<\/code><\/pre>\n<p>Also this links could be usefull:<\/p>\n<p><a href=\"http:\/\/wordpress.org\/support\/topic\/wp_page_menu-re-name-home\" target=\"_blank\">http:\/\/wordpress.org\/support\/topic\/wp_page_menu-re-name-home<\/a><\/p>\n<p><a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_page_menu\" target=\"_blank\">http:\/\/codex.wordpress.org\/Function_Reference\/wp_page_menu<\/a><\/p>\n<p><a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_nav_menu\" target=\"_blank\">http:\/\/codex.wordpress.org\/Function_Reference\/wp_nav_menu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using thematic child theme go to thematic-functions.php file in your child theme and add this: \/\/\u00a0\u00a0 \u00a0Add a Home link to your<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.kavdesign.net\/blog\/coding\/how-to-change-the-home-link-on-the-main-wordpress-menu-to-something-else\/\">Continue reading<span class=\"screen-reader-text\">How to rename the home link on the main wordpress menu to something else?<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,82],"tags":[95,94,72],"class_list":["post-497","post","type-post","status-publish","format-standard","hentry","category-coding","category-wordpress","tag-home","tag-item","tag-menu","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":6,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/497\/revisions"}],"predecessor-version":[{"id":501,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/497\/revisions\/501"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}