css3 - wordpress template reuse id for different page feeds -



css3 - wordpress template reuse id for different page feeds -

i'm building wordpress template home page takes excerpt , featured image category or page , displays number of them on page. under each there link 'read more' or 'buy' using woocommerce plugin shop element. within posts/pages there woocommerce 'add cart' shortlink product. want each 'buy' link on home page go part of post/page shortlink code. used div id="buy" , added #buy template link. works fine once. know not supposed reuse id. want person updating site new products not have touch template want them able utilize same id. each section of home page within it's own loop, reset each time. create okay reuse same id? throughout template , on individual posts/pages??

having hash #buy in url on category page no problem - can have there on many urls want. , if you're creating <div id="buy">...</div> on individual page, it's no problem , can have on many individual pages want.

where run problem if have <div id="buy">...</div> multiple times on page because link anchor go first 1 on page.

wordpress css3 templates hash woocommerce

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -