Hello,
I am actively using the portfolio feature in this theme. I like how you can direct the feature image to open a specific URL. How can I make it so, it gives me the option to open the link a new tab or not?
Like for example, when i direct to a youtube link – it opens up a model (which by the way, by default does not play the highest quality video – the user has to manually adjust it — how can i change this??) but if i want it to open to the youtube page itself — how can i do this?
When the video opens up on model on my website – it rips apart my host system resources eventually causing my site to go down.
Please help
Thanks
Hi ojasray!
Thank you for using Enfold.
Add this to the functions.php file if you want to open the custom link in different tab:
add_action('wp_footer', 'ava_grid_target');
function ava_grid_target(){
?>
<script>
(function($){
$(".grid-image").each(function() {
$(this).attr('target', '_blank');
});
})(jQuery);
</script>
<?php
}
Regards,
Ismael
Hey,
when i added this to my child theme function file – it broke the site — now i cannot get back into the site…
Hi!
Please go to wp-content/themes/enfold and open functions.php file and remove the code via FTP. Then create a temporary admin login and post it here privately so we can add the code for you. Ismael’s code works totally fine
Best regards,
Yigit
Hi
A part of one of my pages is suddenly hidden behind the sidebar. What to do?
Best regards, Ditte