0

i declare a div in a .phtml file for a slider

<div id="page-header-sliders" class="page-header-sliders template-1  full-width">

and this phtml file is create 5 slider in a same cms page, so id of div id="page-header-sliders" is repeated every time and it will show an error of Using of Duplicate ID

So my question is when i use a .phtml file in a page multiple times how to handle the error of Using of Duplicate ID

  • can you manage all slider individual with unique id? in your .phtml file – Hitesh Nov 22 '18 at 6:18
  • No i cant able to manage slider with unique id , and the problem is all the slider is making form same phtml flie – Akash Agrawal Nov 22 '18 at 6:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.