Tagged: Latest News
-
AuthorPosts
-
May 24, 2017 at 11:53 am #798851
Hi!
If I click on a link post in the widget, I want to go directly to the target url, I specified in the link post. At the moment I get a new site, where I only see a picture with title, on the title is the correct target link.
What can I do?THX
Using Enfold 4.0.7 with child theme
Wordpress 4.7.5May 25, 2017 at 7:09 pm #799728Hey netgo2017,
Did you get this fixed? The links go to the pages they are supposed to.
If you need further assistance please let us know.
Best regards,
VictoriaMay 26, 2017 at 7:53 am #800014Hi Victoria!
No, it doesn’t still work. Please have a look on the right side “Neue Beiträge”. There are five posts. For example the second Post “Freiwilliger Rückruf von Netzteilen” shows to https://www.netgo.de/freiwilliger-rueckruf-von-netzteilen/ . But this post is a link-post and should be shown to https://www.computech.de/freiwilliger-rueckruf-von-netzteilen/.
In Magazine or Slider the Target URL is correct, but not in the widget Latest news.
Regards
JoergMay 27, 2017 at 11:47 am #800514Hi netgo2017,
Thank you for the clarification. Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMay 29, 2017 at 7:45 am #800956sure.
Victoria, could you also please take a look on the “weiterlesen” buttons on the same page? I see, the links there are also not correct. Only the links on the Pictures and title-text are correct.
Thank you!- This reply was modified 7 years, 5 months ago by netgo2017.
May 31, 2017 at 5:18 am #801787Hi,
This is possible but you have to modify one of the core or parent theme files. If you’re ok with that, edit the framework > php > class-framework-widgets.php file, look for this code around line 520:
$link = get_post_meta( $the_id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : get_permalink();
Replace it with:
$link = get_post_meta( $the_id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : get_permalink(); $link = get_post_format( $the_id ) == 'link' ? avia_custom_link_content_filter(get_the_content($the_id)) : $link;
And then add the following code in the functions.php file:
function avia_custom_link_content_filter($content) { //retrieve the link for the post $link = ""; $pattern1 = '$^\b(https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]$i'; $pattern2 = "!^\<a.+?<\/a>!"; $pattern3 = "!\<a.+?<\/a>!"; //if the url is at the begnning of the content extract it preg_match($pattern1, $content , $link); return $link[0]; }
Best regards,
IsmaelJuly 25, 2017 at 4:44 pm #829688Hi!
I am working with a child theme. So I did the following:– I edited the class-framework-widgets.php from my parent theme, as you described.
– I inserted the you gave me for the functions.php from my child theme.After that, my website was blank. Perhaps I had to put the class-framework.widgets.php into my child theme? But, how can I do that?
Regards
July 26, 2017 at 5:17 am #829933 -
AuthorPosts
- You must be logged in to reply to this topic.