I'm trying to modify the src of an image for specific pages, like this one: http://oasysgp.kevinmamaqi.com/marina/.
The problem is that the logo changes just after the original one appears. I am using the following code:
jQuery(document).ready(function($){
/* Cambiar el logotipo para las páginas de CPI */
if( $('body').hasClass('page-id-18') || $('body').hasClass('page-id-445')) {
$('#logo').attr("src","/wp-content/uploads/2016/07/oasispci.png");
}
});
Is possible to load the other image before?