Skip to content

Commit

Permalink
QTS: remove nav functions and cleanup (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
spleen1981 authored Mar 7, 2022
1 parent 3334857 commit 8f482fa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 360 deletions.
7 changes: 1 addition & 6 deletions modules/slugs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,14 @@ If you want to translate also the base permastructs (ex. *category*, *tag*, etc)
- Set the base permastructs for **post types** and **taxonomies** (If you setup a base permastruct for *categories* or *tags* in *Settings/Permalinks*, these will be overwritten by the translated ones).
- Save settings and that's all!

### How can I insert a language selector in my theme ?
You can choose to:
* use **Qtranslate Slug Widget** in your sidebar.
* place in your template `<?php if (function_exists('qts_language_menu') ) qts_language_menu('text'); ?>`. Options are: `dropdown`, `text`, `image`, and `both`.

### Appears an error 404, what can I do?
In the admin go to *Settings/Permalinks* or *Settings/Slug options* and save.

### I can't manage translations in Nav Menus.
That's because language selector metabox is hidden, if you are in admin *nav menus* screen, press the button **Screen options** (on top and right) and after, check the option *Languages*. It will appear a **Language** meta box on top of the left sidebar.

### How to get the current url in a specific language?
You can use `qts_get_url()` or the awkwardly named `qTranslateSlug_getSelfUrl()` which is an alias for the first one.
You can use `qts_get_url()`.

## TODO

Expand Down
1 change: 0 additions & 1 deletion modules/slugs/assets/js/qts-nav-menu-min.js

This file was deleted.

165 changes: 0 additions & 165 deletions modules/slugs/assets/js/qts-nav-menu.js

This file was deleted.

Loading

0 comments on commit 8f482fa

Please sign in to comment.