• Resolved dimmy1985

    (@dimmy1985)


    Hi Matt!

    I’ve created an English/German site for a friend that’s running off a single install. The dates translate just fine, and I’ve set up two different widgets for the EN/DE versions to show on the respective sidebars.

    However, because there’s only one available link to ‘View Full Calendar’ in the settings, the German widget links to the English calendar, which thereby puts the user on the English site with English nav menus/language selector is only on home page etc. etc.

    Is there a way to implement a second link so that the View All of the German site’s widget will lead to the appropriate ‘Kalender’?

    As always, thanks for the great plugin.

    https://www.ads-software.com/plugins/mf-gig-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matthew Fries

    (@brewermfnyc)

    Sorry. There’s not a way built into the plugin.

    But you could handle this pretty easily with javascript and just rewrite the link on the German pages. To make it even easier you can use jQuery to access the link easily and specifically.

    Something like this…

    var my_new_url = "/path/to/german/calendar";
    jQuery("#mfgigcal-widget a.calendar_url").attr("href", my_new_url);

    I haven’t test this, but that’s where I’d start.

    Thread Starter dimmy1985

    (@dimmy1985)

    Thanks Matt!

    Unfortunately, that’s a bit too tricky for me. Might just have to create a title-less text widget underneath with nothing but the link in it, and disable the link for the German MF Gig calendar widget (EN/DE are running their own widgets), then position it with some sloppy CSS ??

    Dodgy… but it’ll do!

    Plugin Author Matthew Fries

    (@brewermfnyc)

    It’s a dodgy business! As long as it works…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link to full calendar for multi-language site’ is closed to new replies.