Page tree
Skip to end of metadata
Go to start of metadata

The built in Highlighted Animals section is hardcoded to say Highlighted Cats, Highlighted Dogs, Highlighted Animals.

If you would like to change this to something else you can add in the following code.

Example code below shows changing the text to Featured Pets of the Week!

  1. Create a Custom Code Snippet.

  2. Add in the following code below to the snippet.

  3. Add the snippet to your web page Footer.
<!-- bens footer custom code here -->
<script language="Javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
var elems = document.getElementsByTagName('*'),i;
    for (i in elems) {
    	if((" "+elems[i].className+" ").indexOf("contentSectionHeader") > -1) {
    		elems[i].innerHTML = elems[i].innerHTML.replace("Highlighted Dogs","Featured Pets of the Week");
    	}
    }
</script>

You may need to change the text from "Highlighted Dogs" to "Highlighted Animals" or "Highlighted Cats".

 

 

  • No labels