Link blog entries on Projects widget - Astrid

Hi! First, really thank you for your work.

It is possible to link single blog entries on Astrid Projects widget? I’ve tried with the post ID but it doesn’t work. It is only for pages?

Thanks!

etringita.

Hello etringita,

Can you please describe what exactly you want to achieve more precisely?

Kind Regards, Roman.

Hello Roman,

My intention is not duplicate information. I pretend to have all my projects registered at the blog and the projects widget will be a fantastic way to show the starring ones at homepage, linking them.

Thank you for your answer!

etringita.

Hello etringita,

Astrid projects don’t have custom link functionality.

You can remove Astrid projects links using JS, here is a relevant topic:

You can also modify links in similar way, but you’ll have to change them manually every time. Please leave here a note if you want to do that.

Kind Regards, Roman.

Hi Roman!

Thank you so much for your answer.

It will be great to modify links. Won’t be hard for me change them manually when need it. I thought to create a text widget with html to link the starred entries to a picture but your projects widget has cooler appereance for sure.

Regards!

etringita.

Hello etringita,

Try to use this code instead of the code in the topic mentioned above:

<script>
    jQuery(document).ready(function(){
        jQuery('.atframework_projects_widget .project:nth-child(1) .project-title a').attr('href', 'http://example.com');

        jQuery('.atframework_projects_widget .project:nth-child(2) .project-title a').attr('href', 'http://example.com');
    });
</script>

Add as much instances as you need using incrementing nth-child() number, also replace http://example.com with desired links.

Kind Regards, Roman.

It works perfectly! Thank you sooooooo so much, Roman!!

Great! You are welcome etringita! :slight_smile:

Kind Regards, Roman.

Even I’ve take your code to hack employees widget to make that two people single pages redirect to a only description page and it works perfectly too. (^____~)