Write category descriptions for each product category. This will show up on the catalog page and serve as a guide to your customer.





For displaying content on the First page of the Category/Subcategory page


For Example, below is the Category page Url on which you want to display some content.


Category one Url http://shop.yesyeswhynot.com/Y-Tees-depid-55462-page-1.html


We can write below code. Copy the red part below.


<script>

if (window.location.pathname == "/Y-Tees-depid-55462-page-1.html")

jQuery(".catalogpagetitle").after("<br/><br/><br/><h3>All about Y Tees. Buy Cool Tees</h3>");

</script>


Then paste this script in Third party Javascript


Category two url http://shop.yesyeswhynot.com/Khandani-Pillow-depid-55460-page-1.html


Copy the red part below.

<script>

if (window.location.pathname == "/Khandani-Pillow-depid-55460-page-1.html")

jQuery(".catalogpagetitle").after("<br/><br/><br/><h3>All about Y Tees. Buy Cool Tees</h3>");

</script>


We can do the same thing for all the categories and subcategories.



If you are looking to add Text on all the pages of Category and not just first page, you can use below code.


Category one Url http://shop.yesyeswhynot.com/Y-Tees-depid-55462-page-1.html


We can write below code. Copy the red part below.


<script>

if (window.location.pathname.indexOf( "55462") != -1)

jQuery(".catalogpagetitle").after("<br/><br/><br/><h3>All about Y Tees. Buy Cool Tees</h3>");

</script>