WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] qTranslate for Links (3 posts)

  1. deeluuxe
    Member
    Posted 1 year ago #

    Hello!

    I´ve tried adding two different links for two languages using the qTranslate Shortcode in the "TopBar Text & Image" Settings:

    [:de]/my-page/[:en]/my-page/?lang=en

    Unfortunately this doesn´t work and the link is being deleted from the input field after saving. It would be great working with qTranslate here, too. So users could be directed to the right page without having to switch the language again.

    Keep on the excellent work!
    Jan

    http://wordpress.org/extend/plugins/wp-topbar/

  2. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    I found the issue.

    I put in code to validate the URL entered is valid. I'll remove that in the next release.

    In the meantime, you can open wp-topbar-db-io.php and search for

    $wptbOptions['bar_link'] = esc_url($_POST['wptblinkurl']);

    Replace it with:

    $wptbOptions['bar_link'] =($_POST['wptblinkurl']);

    Let me know if that works,

    Bob

  3. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    This is now fixed in v 4.13.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic