I have tried using dots (.) and double quotation to add php code in javascript. But works nothing. Here is the code:
$( ".box-hover" ).hover(
function() {
$( ".box-hover ").prepend( $(`<div class="gizfeatshare">
<div class="postfb">
<a nohref target="popup" onclick="window.open('http://ift.tt/OxyLGR','name','width=600,height=400')"><img src="http://ift.tt/1IdNFwg" width="45px" />
</a>
</div></div>`) );
}, function() {
$(this).find( "div" ).remove();
}
);
I want to add some PHP code in the link for Wordpress use. Here is the PHP code <?php get_permalink(); ?> and <?php echo "Content"; ?>
Aucun commentaire:
Enregistrer un commentaire