Using Ad Inserter for Dynamic Ads in Specific HTML Element?
-
How can I use Ad Inserter plugin to display ads after every 10 <li> elements in a specific <UL> HTML element, where both the UL and LI elements have dynamic unique IDs?
Below is the HTML source code:
<ul class="qt-collapsible proradio-chart-tracklist proradio-chart-normal" data-collapsible="accordion"> <li id="chartItem16009-1" class="qt-collapsible-item proradio-paper proradio-part-chart proradio-chart-track proradio-card"> <div class="proradio-chart-table collapsible-header qt-content-primary"> <div class="proradio-position qt-content-primary-dark"> <img src="https://mysite.com/wp-content/uploads/2023/04/001-J0VANNA-Stupid-Face.webp" class="proradio-chart-cover" alt="Chart track" width="75" height="75"> <p class="proradio-capfont">1</p> </div> <div id="chartvoting0" class="proradio-chartvote"> <a class="proradio-chartvote-link not-collapse qt-up" data-ip="139.47.52.115" data-move="1" data-chartid="16009" data-position="0"><i class="a"></i></a> <span class="proradio-chartvote-number">0</span> <a class="proradio-chartvote-link not-collapse qt-down" data-ip="139.47.52.115" data-move="-1" data-chartid="16009" data-position="0"><i></i></a> </div> <div class="proradio-titles"> <h4 class="proradio-cutme-t">Stupid Face</h4> <p class="proradio-itemmetas">J0VANNA</p> </div> <div class="proradio-action"> <a class="proradio-btns qt-content-primary noembed" target="_blank"><i class='material-icons'>add_shopping_cart</i></a> </div> </div> <div id="chartPlayer16009-1" class="collapsible-body proradio-paper"> <div class="qt-differembed" data-autoembed="https://open.spotify.com/track/6ikigkaqtdCsJz55Tr6doM?si=c1fd5e6875924e45"></div> </div> </li> <li id="chartItem16009-2" class="qt-collapsible-item proradio-paper proradio-part-chart proradio-chart-track proradio-card"> <div class="proradio-chart-table collapsible-header qt-content-primary"> <div class="proradio-position qt-content-primary-dark"> <img src="https://mysite.com/wp-content/uploads/2023/04/002-5onney-D-I-Dont-Wanna-Love-You.webp" class="proradio-chart-cover" alt="Chart track" width="75" height="75"> <p class="proradio-capfont">2</p> </div> <div id="chartvoting1" class="proradio-chartvote"> <a class="proradio-chartvote-link not-collapse qt-up" data-ip="139.47.52.115" data-move="1" data-chartid="16009" data-position="1"><i class="a"></i></a> <span class="proradio-chartvote-number">0</span> <a class="proradio-chartvote-link not-collapse qt-down" data-ip="139.47.52.115" data-move="-1" data-chartid="16009" data-position="1"><i></i></a> </div> <div class="proradio-titles"> <h4 class="proradio-cutme-t">I Don't Wanna Love You</h4> <p class="proradio-itemmetas">5onney D</p> </div> <div class="proradio-action"> <a class="proradio-btns qt-content-primary noembed" target="_blank"><i class='material-icons'>add_shopping_cart</i></a> </div> </div> <div id="chartPlayer16009-2" class="collapsible-body proradio-paper"> <div class="qt-differembed" data-autoembed="https://open.spotify.com/track/6U0dpJ2TTDlESMvdIQXJex?si=5f7a809c1b494b97"></div> </div> </li> </ul>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using Ad Inserter for Dynamic Ads in Specific HTML Element?’ is closed to new replies.