-
AuthorPosts
-
March 26, 2015 at 10:53 pm #418881
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
March 27, 2015 at 1:31 pm #419242Hi 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,
IsmaelMarch 27, 2015 at 1:55 pm #419253Hey,
when i added this to my child theme function file – it broke the site — now i cannot get back into the site…
March 27, 2015 at 4:18 pm #419373Hi!
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,
YigitDecember 2, 2017 at 10:21 pm #884199Hi
A part of one of my pages is suddenly hidden behind the sidebar. What to do?Best regards, Ditte
December 3, 2017 at 12:39 pm #884320 -
AuthorPosts
- You must be logged in to reply to this topic.
