-
AuthorPosts
-
January 18, 2014 at 11:06 am #211539
The blue and orange icons for the “RSS Link and Twitter account” WIDGET does not open a new tab when clicked.
How do we get it to open a new tab ?
January 18, 2014 at 9:27 pm #211682Hi Anthony!
Edit framework > php > class-framework-widgets.php, find this code on line 594:
echo $before_widget; $output = ""; if(isset($twitter)) { $link = 'http://twitter.com/'.$twitter.'/'; $before = apply_filters('avf_social_widget', "", 'twitter'); $output .= "<a href='$link' class='asc_twitter $addClass'>{$before}<strong class='asc_count'>".__('Follow','avia_framework')."</strong><span>".__('on Twitter','avia_framework')."</span></a>"; } if($rss) { $output .= "<a href='$rss' class='asc_rss $addClass'>".apply_filters('avf_social_widget',"", 'rss')."<strong class='asc_count'>".__('Subscribe','avia_framework')."</strong><span>".__('to RSS Feed','avia_framework')."</span></a>"; }
Replace it with:
echo $before_widget; $output = ""; if(isset($twitter)) { $link = 'http://twitter.com/'.$twitter.'/'; $before = apply_filters('avf_social_widget', "", 'twitter'); $output .= "<a target='_blank' href='$link' class='asc_twitter $addClass'>{$before}<strong class='asc_count'>".__('Follow','avia_framework')."</strong><span>".__('on Twitter','avia_framework')."</span></a>"; } if($rss) { $output .= "<a target='_blank' href='$rss' class='asc_rss $addClass'>".apply_filters('avf_social_widget',"", 'rss')."<strong class='asc_count'>".__('Subscribe','avia_framework')."</strong><span>".__('to RSS Feed','avia_framework')."</span></a>"; }
Regards,
IsmaelJanuary 18, 2014 at 9:32 pm #211685Thanks for the reply.
I will give it a try.
Will this be added to your next update of the Enfold theme ?
January 18, 2014 at 11:38 pm #211764Hi!
No, it will not. You can request it here: https://kriesi.at/support/topic/enfold-feature-requests/
Best regards,
IsmaelFebruary 9, 2014 at 3:25 pm #221349Hello Ismael,
I can not find class-framework-widgets.php in my wordpress theme editor.
Could you help me to change “RSS Link and Twitter account” WIDGET to open new window and translate the text to spanish?
http://solucionestecnologicasparaempresas.com/
Thanks in advance, Raúl Ibáñez.
February 10, 2014 at 4:20 am #221512Hey!
You can edit the file via FTP or your cpanel. Change the text on the same file and line of codes. Look for this line:
$output .= "<a target='_blank' href='$link' class='asc_twitter $addClass'>{$before}<strong class='asc_count'>".__('Follow','avia_framework')."</strong><span>".__('on Twitter','avia_framework')."</span></a>";
And this one for the RSS text:
$output .= "<a href='$rss' class='asc_rss $addClass'>".apply_filters('avf_social_widget',"", 'rss')."<strong class='asc_count'>".__('Subscribe','avia_framework')."</strong><span>".__('to RSS Feed','avia_framework')."</span></a>";
Regards,
Ismael -
AuthorPosts
- The topic ‘How to get “RSS Link and Twitter account” WIDGET to open new window’ is closed to new replies.