qTranslate remove default directory from link

WordPress Development Asked by ilushoni on January 4, 2022

/ru – default directory, how can I remove it

this link:
should be:

<ul class="language-chooser language-chooser-text 
qtranxs_language_chooser" id="qtranslate-chooser">
    <li class="lang-ru active"><a href="" 
hreflang="ru" title="RU (ru)" class="qtranxs_text qtranxs_text_ru">
    <li class="lang-en"><a href="" 
hreflang="en" title="EN (en)" class="qtranxs_text qtranxs_text_en">
    <li class="lang-uk"><a href="" 
hreflang="uk" title="UK (uk)" class="qtranxs_text qtranxs_text_uk">
<div class="qtranxs_widget_end"></div> 

One Answer

Go to general plugin's options - /wp-admin/options-general.php?page=qtranslate-x#general and in section "URL Modification Mode" choose "Pre-Path Mode" and then also check "Hide URL language information for default language" - like this:

enter image description here

Answered by Picard on January 4, 2022

Add your own answers!

Related Questions

How to handle image resize in media_handle_sideload?

1  Asked on January 10, 2021 by user1692333


apiFetch security

1  Asked on January 9, 2021


Use cron to create a non blocking task

2  Asked on January 7, 2021 by cyclonecode


Creating a slider shortcode to use with bxslider

0  Asked on January 6, 2021 by devsem


Redirect Admin User in Dashboard

4  Asked on January 5, 2021 by plumwd


Adding featured image to a new post using front-end form?

1  Asked on January 3, 2021 by davood-kazemi


Hook when post is set from published to draft?

1  Asked on January 2, 2021 by anton-emery


How to execute filter with WP Cli?

0  Asked on January 2, 2021 by efbi


Get HTTP response code on non-2xx apiFetch request

0  Asked on January 1, 2021 by nicholas-harris


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir