-
AuthorPosts
-
April 11, 2016 at 5:42 am #610957
Hi,
I’ve created a portfolio item with an external URL. I put that URL in the “Link portfolio item to external URL” box.I’m using the Portfolio grid to display that item as you can see on this page: http://denvermediapro.com/courses/. I’ve got the Portfolio Grid set to “Open the entry on a new page” in the “Link Handling” section of the settings. However, when I click on the portfolio item on the page noted above, it does not open in a new page. It opens the link in the same page.
Am I doing something wrong?
Thanks for the help!
April 11, 2016 at 5:46 am #610959Hi curtdonohue!
We need to take a closer look at it please create a temporary user with ‘administrator’ role and share in private content with permission to deactivate all plugins and add custom code if necessary to help you resolve this issue.
Best regards,
VinayApril 11, 2016 at 5:57 am #610969See private info below.
April 11, 2016 at 6:03 am #610974Please see private content
April 11, 2016 at 6:58 am #611014Hi!
We are working on your ticket please wait while we update the results here soon.
Please review the site now we have added the following code in function.php
/* External links */ function external_links(){ ?> <script> jQuery(window).load(function(){ jQuery("a[href^='http:']").not("[href*='denvermediapro.com']").attr('target','_blank'); }); </script> <?php } add_action('wp_footer', 'external_links');Regards,
Vinay-
This reply was modified 9 years, 7 months ago by
Vinay.
April 11, 2016 at 2:15 pm #611289Thank you! That works great! Is this feature something that can be added to a future update? It seems like this would be a common issue.
I’m assuming the next time I have to update the theme, the changes you made will be erased. Is that correct?
April 11, 2016 at 2:19 pm #611293Hey!
You can simply use a child theme and add the code to functions.php file of your child theme instead to avoid having it overwritten when you update the theme :)
Regards,
Yigit -
This reply was modified 9 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
