Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #427998

    Please refer to the following post
    https://kriesi.at/support/topic/post-format-link-links-direct-in-latest-news-widgit/#post-426885

    One last question.
    Where would I put:
    target=”_blank”
    So that the post format links in the sidebar widgets open in a new window?
    Possible?

    if($format == 'link')
                                               {
                                                    $current_post = array();
                                                    $current_post['content'] = get_the_content();
                                                    $current_post['title'] =  get_the_title();
                                                    
                                                    if(function_exists('avia_link_content_filter'))
                                                    {
                                                        $current_post = avia_link_content_filter($current_post);
                                                    }
                            
                                                    $link = $current_post['url'];
                                                }
    #428781

    Hi stupaul22!

    Thank you for coming back.

    In framework > php > class-framework-widgets.php goto line 523 (original file), locate:

    
    			echo "<a class='news-link' title='".get_the_title()."' href='".$link."'>";
    

    and replace with:

    
               echo "<a class='news-link' title='".get_the_title()."' href='".$link."' target='_blank'>";
    

    Regards,
    Günter

    #429075
    This reply has been marked as private.
    #429090

    Hey!

    Glad I could help you. Enjoy the theme and feel free to come back with further questions and/or problems you have.

    Best regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Post format "Link" links direct in latest news widgit—target="_blank"’ is closed to new replies.