# (Squarespace) Change Pagination H2 to Div

**URL:** <https://community.elfsight.com/t/squarespace-change-pagination-h2-to-div/100943>\
**Category:** Platform Tips\
**Tags:** squarespace\
**Created:** [February 13, 2025, 2:10pm UTC](https://community.elfsight.com/t/squarespace-change-pagination-h2-to-div/100943 "2025-02-13T14:10:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuanphan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/tuanphan/32/3165_2.png) [@tuanphan](https://community.elfsight.com/u/tuanphan)\
**Post date:** [February 13, 2025, 2:10pm UTC](https://community.elfsight.com/t/squarespace-change-pagination-h2-to-div/100943/1 "2025-02-13T14:10:16Z")

</div>

To change Pagination from H2 to Div.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/4/6/4625019b40fdf9547a5c6eb490f3abe0b2029e3a.jpeg)

You can use this code to Code Injection \> Footer  
If code doesn’t work, you can comment below, [message](https://community.elfsight.com/u/tuanphan/) or [email me](mailto:info@beaverhero.com).

```auto
<script>
document.addEventListener('DOMContentLoaded', function() {
 const elements = document.querySelectorAll('.item-pagination-title');
elements.forEach(element => {
  const div = document.createElement('div');
  div.className = element.className;
  div.style.cssText = element.style.cssText;
  div.innerHTML = element.innerHTML;
  element.parentNode.replaceChild(div, element);
});
});
</script>

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/4/e4a79e624a80cdde2ae1c81105b2eb5b7c3d106a.png)

Result

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/3/4/346a332428b580d969833be21b55c108317483df.jpeg)
