Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save malachi358/6544640 to your computer and use it in GitHub Desktop.

Select an option

Save malachi358/6544640 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('.product_grid_item:nth-child(19)').after('<div class="mid-header" id="hp1" ><div id="votk"><p>1</p></div> <h1 class="entry-title"><?php the_title(); ?> </h1></div>');
$('.product_grid_item:nth-child(40)').after('<div class="mid-header" id="hp2" ><div id="votk"><p>2</p></div> <h1 class="entry-title"><?php the_title(); ?> </h1></div>');
$('.product_grid_item:nth-child(61)').after('<div class="mid-header" id="hp3"><div id="votk"><p>3</p></div> <h1 class="entry-title"><?php the_title(); ?> </h1></div>');
$('.product_grid_item:nth-child(82)').after('<div class="mid-header" id="hp4"><div id="votk"><p>4</p></div> <h1 class="entry-title"><?php the_title(); ?> </h1></div>');
$('.product_grid_item:nth-child(103)').after('<div class="mid-header" id="hp4"><div id="votk"><p>5</p></div> <h1 class="entry-title"><?php the_title(); ?> </h1></div>');
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment