Projects open in new tab

Hi there, I am trying to make my projects open in a new tab.

I saw this old post but it must be out of date.

https://colorlibsupport.com/t/have-projects-open-in-new-tab/

It says:
To achieve this you need to do some custom coding in the core files
wp-content/themes/illdy/widgets/class-widget-project.php at line 39
There you should add a target="_blank" inside the to look like this:

The problem is that I logged into my hosting and tried to find the file mentioned above but the /widgets folder and the
class-widget-project.php don’t seem to exist.

Could this be different now with an upgraded version of the theme?

Your help would be much appreciated.

Thanks

Hi,

Editing core files is not a best solution, try this solution.

  1. Install any plugin that supports adding custom js to the theme, say Custom JS – WordPress plugin | WordPress.org
  2. Add this script,

<script>
jQuery(document).ready(function(){
jQuery(’.widget_illdy_project a’).attr(‘target’, ‘_blank’);
});
</script>

Let us know,

Thanks,
laranz.

Thanks for your help.

I have tried what you said an it doesn’t seem to make a difference.

Any other suggestions?

Thabks

Good evening, i can help you with this but i need temporary access, Please use this plugin to create temporary access for us, its automatic login link and does not requires sharing your admin details. here is How To guide. at the and don’t forget about  “Set as private reply” at the bottom of the message box  

Hi thanks so much for your help.

I need an email address from you to create the temporary login.

Thanks

Toby

hi Toby

You can use your email address :wink: we just need it for temporary access

Here is the link for login.

Thank you so much.

http://tandtoast.com.au/wp-admin/?wtlwp_token=53d312b89bbdb7cac36384e28921b015

Hi there

PLease go ahead and check again, this is the final code i used:

<script>
jQuery(document).ready(function( $ ){
jQuery(".widget_illdy_project a").attr("target", "_blank");
});
</script>

Oh thank you so much for that.

That’s such a great help.

Many thanks

Toby

Hi,

Glad we helped. :slight_smile:

Let us know If you have any other questions. Please feel free to contact us again in the future regarding any other issues.

If you’re happy with our service, don’t forget to rate us: [Illdy] Reviews | WordPress.org

Thanks,
laranz.

Hello,
I am also trying to have my projects open in a new tab. This How-to doesn’t work for me either.

Thanks

Actually, I figured it out!

Hi, there

I will close the topic and mark it as resolved. Feel free to contact us again Thanks!