{"id":15071,"date":"2016-02-10T09:04:07","date_gmt":"2016-02-10T09:04:07","guid":{"rendered":"https:\/\/de.wordpress.org\/support\/2016\/02\/10\/currency-switcher-mit-code-im-topbar-einbauen\/"},"modified":"2016-02-10T09:04:07","modified_gmt":"2016-02-10T09:04:07","slug":"currency-switcher-mit-code-im-topbar-einbauen","status":"publish","type":"topic","link":"https:\/\/de.wordpress.org\/support\/topic\/currency-switcher-mit-code-im-topbar-einbauen\/","title":{"rendered":"currency switcher mit code im topbar einbauen"},"content":{"rendered":"<p>Hallo,<\/p>\n<p>ich bastel gerade an einer woocommerce Seite f\u00fcr meinen Online Shop. Ich habe einen currency switcher, um den Shop in verschiedenen W\u00e4hrungen laufen zu lassen. Dieser wird normalerweise in einem Widget im Sidebar darestellt. Ich m\u00f6chte ihn aber im Topbar ganz oben auf meiner Seite haben.<\/p>\n<p>Ich dachte, das ginge auch mit einem Shortcode? Find ich aber nichts.<\/p>\n<p>Dazu steht in der Dokumentation:<\/p>\n<blockquote>\n<p>Chances are that you want the currency switcher to be placed in a different area of the page other than the side bar and you want it to be styled to match your site.<\/p>\n<p>With that in mind, we made it very easy for you to create you own switcher that you can add where ever you want.<\/p>\n<p>Using basic HTML syntax, you can create anything you want to handle the currency switching. The only thing you need to ensure is that the link that is clicked to select the currency points to the same URL of the page with the parameter wmcs_set_currency added to it, with the value of the parameter being the currency code that will be switched to.<\/p>\n<p>So for example, if using an <code>&lt;a&gt;<\/code> tag to create the link, the HTML would be:<\/p>\n<p><code>&lt;a href=&quot;?wmcs_set_currency=USD&quot;&amp;lgt;Click here to change to USD&lt;\/a&gt;<\/code><\/p>\n<p>The plugin will take care of the rest.\n<\/p>\n<\/blockquote>\n<p>Das verstehe ich leider nicht. K\u00f6nnte einer von Euch mir vielleicht erkl\u00e4ren, was ich jetzt genau machen muss, damit der Switcher mir im Topbar angezeigt wird? Meine Versuche irgendwas in der topbar.php zu schreiben, snd leider alle gescheitert.<\/p>\n<p>Vielen Dank!<\/p>\n","protected":false},"template":"","class_list":["post-15071","topic","type-topic","status-publish","hentry","topic-tag-currency-switcher","topic-tag-topbar","topic-tag-widget"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15071\/revisions"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}