How to Remove a Trailing Slash from Home’s URL in Atahualpa 3.5.3 Theme of WordPress
Believe it or not, if you are running a multilingual site using Atahualpa theme and WPML plugin, you will find that there is a double trailing slash in the Home’s URL that generated by WPML, especially for Home’s URL belongs to the languages other than the default one and you are using the “directory per language” setting in WPML. This can be happened since Atahualpa add a trailing slash in every Home’s URL when the home page is being displayed, whereas WPML also added another trailing slash after the language code in the URL. So, this will make a double trailing slash in the Home’s URL. In order to remove one of these trailing slash, you can use this following modification. As time goes by, this modification being applied into Atahualpa version 3.5.3 (the last version while I was writing this article) and WordPress version 3.0.1. I am not sure whether this modification can be applied into the older versions. Read more…



Recent Comments