EduardET

Untitled

Feb 27th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. ( function( $ ) {
  3.     $( document ).ready( function() {
  4.         if ( $( 'body' ).hasClass( 'page-id-60' ) ) {
  5.             var artcile = $( '.et_pb_posts article' );
  6.             artcile.each( function() {
  7.                 var featuredImage = $(this).find('.entry-featured-image-url'),
  8.                     articleElements = $( this ).find( '.entry-title, .post-content' );
  9.                 $(this).addClass('clearfix');
  10.                 featuredImage.wrap('<div class="wpc-left-box"></div>');
  11.                 articleElements.wrapAll( "<div class='wpc-right-box'></div>" );
  12.                 var newelemeents = $(this).find('.wpc-left-box, .wpc-right-box');
  13.                 newelemeents.wrapAll('<div class="inner-box clearfix"></div>');
  14.             } )
  15.         }
  16.     } );
  17. } )( jQuery );
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment