You are viewing limited content. For full access, please sign in.

Question

Question

Customizing Text of Browse Button in Weblink 11

asked on January 23, 2023

Good afternoon, I'm looking into how difficult to modify the text for the "Browse" button on the Search page from saying Browse to Home, I've poked around but I'm finding that this may be easier said than done:

Has anyone else successfully accomplished this and if so would you mind sharing your steps? 

0 0

Replies

replied on January 24, 2023 Show version history

You could use the following example CSS, assuming no other links have the lflocalize value set as STR_BROWSE:

a [lflocalize="STR_BROWSE"] {
    visibility: hidden;
    position: relative;
}
a [lflocalize="STR_BROWSE"]:after {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    content: "Home";
}

 

0 0
replied on January 25, 2023

Melissa,

 Open up Search.aspx in a text editor, copy the code below and paste it right before the </body> element which will be located near the end of the file.

<script type="text/javascript">
  $(document).ready(function() {
    $(".topBarNavigation a span[lflocalize='STR_BROWSE']").text("Home");
   });
</script>

Save the file and refresh the Search page.

 

Hope this helps!

Wesley Funderberg

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.