Hi
I got help to create a link from the text field beneath the portfolio-thumb in this thread: https://kriesi.at/support/topic/portfolio-text-field-link-possible/
This has presented me with a new challenge. The links all go to “/undefined” As you can try in this site, that I am building now: http://noerbygaardcentret.a14.dk
My question is – How do I ensure that the link is the same as in the corresponding portfolio-thumb?
Hi bertel!
Do you mean the row of 4 starting with Alkoholbehandling? As far as I can see, the all lead to /?page_id=xx ?
Cheers!
Rikard
Hi Rikard
Yes, the image does lead to the right corresponding page. But the word, which is also a link leeds nowhere. (I believe its the “entry-content-header”)
Your colleague Yigit helped me code the entry-header to be links as well in the forum link i provided, but I think am not quite there yet.
Hi Bertel!
Do you mind creating a temporary admin login and posting it here privately please so that i can take a deeper look? :)
Cheers!
Yigit
Hi!
I changed the code to following one
function add_custom_div(){
?>
<script>
jQuery(".grid-entry article").click(function(){
if(jQuery(this).find("a").length){
window.location.href = jQuery(this).find("a:first").attr("href");
}
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_div');
Please review your website now : )
Best regards,
Yigit
Works – brilliant
Thanks
Hey!
You are welcome, glad we could help :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Best regards,
Yigit