Arkadaşlar elimde bir wordpress tema var.
Bu temada üzerine tıkladığım resmin kendine özgü bir web sayfası bulunmakta. Ben bu sayfanın açılmasını değil resmin popup şeklinde çıkmasını istiyorum.
a class="project-link" href="<?php the_permalink(); ?>">
<?php if ($preview_img_url) { ?>
<div class="thumb-container">
<?php
$thumb = oy_get_attachment_id_from_src( $preview_img_url );
$image = vt_resize( $thumb, '', $desired_width, $desired_height, true );
?>
<?php // If the original width of the thumbnail doesn't match the width of the slider, resize it; otherwise, display it in original size ?>
<?php if( $image_full_width > $desired_width || $image_full_height > $desired_height ) { ?>
<style>.portfolio-item-<?php the_ID(); ?> .segment { background-image: url("<?php echo $image[url]; ?>"); }</style>
<?php } else { ?>
<style>.portfolio-item-<?php the_ID(); ?> .segment { background-image: url("<?php echo $preview_img_url; ?>"); }</style>
<?php } ?>
<span class="thumb-arrow"></span>
<div class="segment first-segment" role="img" aria-label="<?php the_title(); ?>"></div>
<div class="segment second-segment" role="img" aria-label="<?php the_title(); ?>"></div>
</div><!-- /.thumb-container -->
<?php } ?>
<h1 class="project-title .medium"><?php the_title(); ?></h1>
</a>Yukarıdaki kod grubundan yapılacağını tahmin ediyorum.
Aşağıdaki şablna göre olacak büyük ihtimal
<a href=".../bored.png" rel="lightbox-0"><img class="aligncenter size-full wp-image-14" src=".../bored.png" alt="bored" width="1024" height="1024" data-id="14"></a>