Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #334411

    How can i add to external link to blog post(s) in homepage instead of blog post’s self link?

    Thanks.

    #334725

    Hi Mehmet Ali!

    Thank you for using Enfold.

    Edit the actual post then set the post format to “Link”. Add the url of the external site on the text editor.

    Best regards,
    Ismael

    #334797

    Hi Ismail;

    Okay, but when i do what you said, it’s not working at Footer – column2. Also see, http://cetinelektrik.com.tr/?cat=1
    How can i fix it?

    Best regards, Mehmet Ali

    • This reply was modified 10 years, 1 month ago by maerbas.
    #335261

    Merhabalar Mehmet Ali!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_post_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('li.news-content.post-format-link a').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_post_target');

    Regards,
    Yigit

    #335548

    Yiğit;

    Nothing changed. Also how can i fix http://cetinelektrik.com.tr/?cat=1 page design. I don’t want to be seen any link or text below the picture except title.

    Regards, Mehmet Ali

    #335554

    Hey!

    “Prysmian Group Türkiye Bilgi Sistemi” post on the footer opens in a new window on my end. Please flush browser cache and refresh your page a few times and add following code to Quick CSS in Enfold theme options under General Styling tab

    .archive .slide-meta, .archive .entry-content {
    display: none;
    }

    Best regards,
    Yigit

    #336066

    Selam Yiğit;

    Nothing has changed at the footer link yet. The footer link still goes http://cetinelektrik.com.tr/?p=570

    Regards, Mehmet Ali

    • This reply was modified 10 years, 1 month ago by maerbas.
    #426889

    Hi!

    Please edit framework > php > class-framework-widgets.php. Find this code on line 519:

    $link = get_post_meta( $the_id  ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : get_permalink();
    

    Below, add this code:

    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'];
                                                }

    Best regards,
    Ismael

    #427022

    Hi ismael;

    i did it. And now, external link just works on it. whole posts on footer are going to external link. İ dont want to that. When I just want to format the link.

    #427282

    Hi!

    I’m not sure if I understand you correctly. I test the code above on our installation and it works for link post formats. It redirects to the custom link instead of the actual post.

    Cheers!
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.