• Resolved jaimezegpi

    (@jaimezegpi)


    Hi, nice develop!
    I have a Q..
    how to override this file
    psp-frontend-behavior.js
    in line 685 you detach the reply form.. but this is confused.. i need clone the form. ( for better UX ).
    ?? thanks..
    Note: i don’t need override php only this js ?? thanks..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jaimezegpi

    (@jaimezegpi)

    Some Like this..

    	$('#psp-comments a.comment-reply-link').click(function(e) {
    
    		e.preventDefault();
    
    		var comment_parent = $(this).data( 'comment-parent' );
    		$(this).removeClass('comment-reply-link').addClass('comment-reply-link-cancelar');
    		$(this).css('display','none');
    
    		//var respond = $('#psp-comments #respond').detach();
    		var respond = jQuery('#psp-comments #respond').first().clone();
    
    		//$( this ).parent().parent().parent().append( respond );
    		$( this ).parent().parent().append( respond );
    
    		$('#respond #comment_parent').val( comment_parent );
    
    	});
    
    • This reply was modified 7 years, 7 months ago by jaimezegpi. Reason: better design of post
    Plugin Author 3pointross

    (@3pointross)

    Hi Jaime,

    It’s probably a bit overkill, but you’d have to override the entire single template.

    If you create a “panorama” folder in your wp-content/themes/yourtheme folder and then copy the single-lite.php template from /wp-content/plugins/project-panorama/lib/templates into that folder it will pull your themes version of the template.

    You can then change the path of that JS file to your own customized version.

    Hope this helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Override Template :)’ is closed to new replies.