{"action":"created","issue":{"url":"https://api.github.com/repos/siteorigin/vantage/issues/18","repository_url":"https://api.github.com/repos/siteorigin/vantage","labels_url":"https://api.github.com/repos/siteorigin/vantage/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/siteorigin/vantage/issues/18/comments","events_url":"https://api.github.com/repos/siteorigin/vantage/issues/18/events","html_url":"https://github.com/siteorigin/vantage/issues/18","id":152039496,"number":18,"title":"Add ability to adjust Category Archive text on backend","user":{"login":"AlexGStapleton","id":17275120,"avatar_url":"https://avatars.githubusercontent.com/u/17275120?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexGStapleton","html_url":"https://github.com/AlexGStapleton","followers_url":"https://api.github.com/users/AlexGStapleton/followers","following_url":"https://api.github.com/users/AlexGStapleton/following{/other_user}","gists_url":"https://api.github.com/users/AlexGStapleton/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexGStapleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexGStapleton/subscriptions","organizations_url":"https://api.github.com/users/AlexGStapleton/orgs","repos_url":"https://api.github.com/users/AlexGStapleton/repos","events_url":"https://api.github.com/users/AlexGStapleton/events{/privacy}","received_events_url":"https://api.github.com/users/AlexGStapleton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/siteorigin/vantage/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/siteorigin/vantage/labels/priority-3","name":"priority-3","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-30T16:31:30Z","updated_at":"2016-05-03T17:21:54Z","closed_at":null,"body":"I've had a few requests about this and answered a few support threads about it too.\r\n\r\nIt would be a nice idea to allow the user to be able to edit the Category Archives: [CATEGORY NAME] text on the backend."},"comment":{"url":"https://api.github.com/repos/siteorigin/vantage/issues/comments/216602289","html_url":"https://github.com/siteorigin/vantage/issues/18#issuecomment-216602289","issue_url":"https://api.github.com/repos/siteorigin/vantage/issues/18","id":216602289,"user":{"login":"Misplon","id":789159,"avatar_url":"https://avatars.githubusercontent.com/u/789159?v=3","gravatar_id":"","url":"https://api.github.com/users/Misplon","html_url":"https://github.com/Misplon","followers_url":"https://api.github.com/users/Misplon/followers","following_url":"https://api.github.com/users/Misplon/following{/other_user}","gists_url":"https://api.github.com/users/Misplon/gists{/gist_id}","starred_url":"https://api.github.com/users/Misplon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Misplon/subscriptions","organizations_url":"https://api.github.com/users/Misplon/orgs","repos_url":"https://api.github.com/users/Misplon/repos","events_url":"https://api.github.com/users/Misplon/events{/privacy}","received_events_url":"https://api.github.com/users/Misplon/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T17:21:54Z","updated_at":"2016-05-03T17:21:54Z","body":"I previously would use Loco Translate and as @gregpriday mentioned, create an English translation assuming it was an English site. In inc/template-tag.php, Vantage is still using the older method of handling the archive title with the function `vantage_get_archive_title`. As a result, users can translate the Category Archives and other strings using Loco Translate. However, with North we're using the post WP 4.1 function `the_archive_title`. In the case of North and when we update Vantage my new method would be to install [Code Snippets](https://wordpress.org/plugins/code-snippets/), you can then add a function as follows:\r\n\r\n```\r\nfunction siteorigin_north_archive_title( $title ) {\r\n\tif ( is_category() ) {\r\n    \t$title = single_cat_title( '', false );\r\n    \t} elseif ( is_tag() ) {\r\n        \t$title = single_tag_title( '', false );\r\n        } elseif ( is_author() ) {\r\n        \t$title = '<span class=\"vcard\">' . get_the_author() . '</span>' ;\r\n        }\r\n    \treturn $title;\r\n\t}\r\nadd_filter( 'get_the_archive_title', 'siteorigin_north_archive_title' );\r\n```\r\n\r\nWhen using Code Snippets, remember to advise users to opt for the option that only runs the function on the site front end. The above function will remove the prefix from the category title.\r\n\r\nI've definitely thought about adding fields for category archives into theme settings. The challenge is that if you look at the list, there are actually several fields we'd need to add:\r\n\r\nhttps://github.com/siteorigin/vantage/blob/develop/inc/template-tags.php#L314-L355\r\n\r\nWhat we could consider is adding a single setting to the blog section that says something like: Remove the archive heading prefix and then lists an example. @gregpriday What you reckon, just thought of this now.\r\n"}}