Home Forums Themes Support Gecko Free shipping for all order over $100 translation

Viewing 2 reply threads
  • Author
    Posts
    • #2525

      As the title says. How can I make this show as a string?

    • #2527

      Nevermind, I found the solution myself with the following code in functions.php

       

      function HelloWorldShortcode() {
      return _e(‘<span class=”cp”>Free shipping</span> for all order over $100’, ‘Gecko’);
      }
      add_shortcode(‘helloworld’, ‘HelloWorldShortcode’);

      Then I added [helloworld]  shortcode to header input in theme settings.

    • #2529

      Hi,

      Glad to hear you solved your issue. We recommend you do your custom job on child theme, so in future you can update theme without losing your custom code.

      Feel free contact us again if you need more assist.

      Best regards

       

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 2 reply threads

You must be logged in to reply to this topic.