Hi,
I have set on the portfolio items link to the image as Link to the page.
But it doesn't work in the widget Latest portfolio. Is there any simple way how to solve it?
portfolio item-link to the page
7 posts from 3 voices-
Posted 1 year ago #
-
please...
Posted 1 year ago # -
Hi,
excuse me for the delay. Could you link to your page and specify which items you're talking about? This way I can provide specific information.
Posted 1 year ago # -
http://www.kosmetikald.cz/wp/?page_id=566
The right sidebar-widget Last portfolio - (Fytoterapie etc.) - portfolio items have the featured picture linked to the page (I don't want "link to this post" ),
It can be seen on
http://www.kosmetikald.cz/wp/Posted 1 year ago # -
Try following - in corona\framework\php\class-framework-widgets.php replace:
echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>";with:
if ($slides[0]['slideshow_link'] == 'url'){ echo "<a class='news-link' title='".get_the_title()."' href='".slides[0]['slideshow_link_url']."'>"; }else{ echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>"; }Posted 1 year ago # -
Hi
Thanks for your reply...but it isn't url, but the page.
So I've changed the code to:
if ($slides[0]['slideshow_link'] == 'page'){ echo "<a class='news-link' title='".get_the_title()."' href='".get_page_link($slides[0]['slideshow_link_page'])."'>"; }else{ echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>";it wasn't easy to find it, but now it works...
Posted 1 year ago # -
Glad that it works now :)
Posted 1 year ago #
Reply
You must log in to post.














