Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #798851

    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?


    Using Enfold 4.0.7 with child theme
    Wordpress 4.7.5


    Hey 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,


    Hi 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 . But this post is a link-post and should be shown to
    In Magazine or Slider the Target URL is correct, but not in the widget Latest news.


    Hi 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,


    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 1 year, 4 months ago by  netgo2017.


    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,


    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?




    I’m sorry but you cannot modify or override the class-framework-widgets.php file in the child theme. Please try to copy the whole “avia_newsbox” class in the child theme’s functions.php file.

    Best regards,

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.