Tagged: blog post, External Link
-
AuthorPosts
-
October 11, 2014 at 11:31 pm #334411
How can i add to external link to blog post(s) in homepage instead of blog post’s self link?
Thanks.
October 13, 2014 at 9:02 am #334725Hi 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,
IsmaelOctober 13, 2014 at 11:45 am #334797Hi 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, 2 months ago by maerbas.
October 13, 2014 at 11:58 pm #335261Merhabalar 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,
YigitOctober 14, 2014 at 1:11 pm #335548Yiğ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
October 14, 2014 at 1:25 pm #335554Hey!
“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,
YigitOctober 15, 2014 at 12:00 pm #336066Selam 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, 2 months ago by maerbas.
April 11, 2015 at 5:05 am #426889Hi!
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,
IsmaelApril 11, 2015 at 1:22 pm #427022Hi 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.
April 13, 2015 at 5:23 am #427282 -
AuthorPosts
- You must be logged in to reply to this topic.