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.
-
Open your /wp-content/themes/{youratahualpathemename}/bfa_header_config.php file, and find this code:
bloginfo('url'); echo '/"
then replace with this following code:
bloginfo('url'); echo '"
Please note that part of code located in six different location at that file, so you have to replace it six times.
-
Open your /wp-content/themes/{youratahualpathemename}/bfa_footer.php file, and find this code:
bloginfo('url'); echo '/"
then replace with this following code:
bloginfo('url'); echo '"
-
Open your /wp-content/themes/{youratahualpathemename}/bfa_next_previous_links.php file, and find this code:
bloginfo('url'); echo '/"
then replace with this following code:
bloginfo('url'); echo '"
Please note that part of code located in three different location at that file, so you have to replace it three times.
That’s all. Now you should have the proper Home’s URL according to their own languages.

Recent Comments