• Hello,

    we would like to hide the label “Your Location”, what means that we dont need it at all. Before we used WPML, we just cleared out the text under “settings”. Now we only can “clear out” text by the string translation for 1 lanugage but not the main.

    So, can you provide us with a filter to remove the “Your Location” Label?

    <div><label for=”wpsl-search-input”>Your location</label></div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there!

    I think in this case the easiest way to accomplish this, if you don’t want to show the label in any language, but still want to keep semantic structure of the page is just to hide the label via CSS.

    You can do it with a rule like this:

    label[for=wpsl-search-input] {
        display: none !important;
    }

    I hope that helps.
    regards,

    Thread Starter espox

    (@espox)

    Hey there!

    thank you so much for this! Do you think, that you have a way to just remove the label from code? So that we work here a little bit cleaner? Like remove_action label or something like that?

    Hi again,

    Well, you could actually not print the label at all if you create a custom Store Locator template. You can use the default template as the base, and then create your own.

    But maybe this solution is a bit too cumbersome for such a small thing, it’s up to you ??

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide Label (WPML in use)’ is closed to new replies.