Hi @antwingrevengoed,
This code works,
jQuery ( function( $ ) {
$('.home .x-feature-box-text a:last-child').each( function() {
$( this ).parent().parent().parent().find('.x-feature-box-graphic-inner img').wrap( '<a href="' + $( this ).attr('href') + '"></a>' );
$( this ).remove();
} );
} );
But I recommend fixing your existing codes first, any code added below it will not work. Example,
jQuery("input[name='apply_coupon']").attr("value","Kortingscode toevoegen");
jQuery(".related.products h2").html("Gerelateerde producten");
jQuery(document).ready(function($){
$('.h-landmark span').html("Shop");
jQuery ( function( $ ) {
$('#linked-feature-box .x-feature-box-text a:last-child').each( function() {
$( this ).parent().parent().parent().find('.x-feature-box-graphic-inner img').wrap( '<a href="' + $( this ).attr('href') + '"></a>' );
$( this ).remove();
} );
} );
This part is wrong without proper closing,
jQuery(document).ready(function($){
$('.h-landmark span').html("Shop");
It should be
jQuery(document).ready(function($){
$('.h-landmark span').html("Shop");
} );
Hence, the final code should be like this
jQuery("input[name='apply_coupon']").attr("value","Kortingscode toevoegen");
jQuery(".related.products h2").html("Gerelateerde producten");
jQuery(document).ready(function($){
$('.h-landmark span').html("Shop");
});
jQuery ( function( $ ) {
$('.home .x-feature-box-text a:last-child').each( function() {
$( this ).parent().parent().parent().find('.x-feature-box-graphic-inner img').wrap( '<a href="' + $( this ).attr('href') + '"></a>' );
$( this ).remove();
} );
} );
Hope this helps.