Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
September 1, 2014 at 4:31 pm #311907
Hi
I want do add or Replace RSS by Facebook widget (footer), any sugestion ?
i look in this topic https://kriesi.at/support/topic/footer-icons/
but is for twitter…
September 2, 2014 at 10:56 pm #312541Hi ProAnts!
Please go to Enfold/framework/php folder and open class-framework-widgets.php file and find
` function widget($args, $instance) { // prints the widget extract($args, EXTR_SKIP); $twitter = empty($instance['twitter']) ? '' : $instance['twitter']; $rss = empty($instance['rss']) ? '' : $instance['rss']; $rss = preg_replace('!https?:\/\/feeds.feedburner.com\/!','',$rss); if(!empty($twitter) || !empty($rss)) { $addClass = "asc_multi_count"; if(!isset($twitter) || !isset($rss)) $addClass = 'asc_single_count'; 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>"; }`
and change it to
` function widget($args, $instance) { // prints the widget extract($args, EXTR_SKIP); $twitter = empty($instance['twitter']) ? '' : $instance['twitter']; $facebook = empty($instance['facebook']) ? '' : $instance['facebook']; if(!empty($twitter) || !empty($rss)) { $addClass = "asc_multi_count"; if(!isset($twitter) || !isset($rss)) $addClass = 'asc_single_count'; 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(isset($facebook)) { $link = 'http://facebook.com/kriesi.at/'; $before = apply_filters('avf_social_widget', "", 'facebook'); $output .= "<a href='$link' $addClass'>{$before}<strong class='asc_count'>".__('Follow','avia_framework')."</strong><span>".__('on Facebook','avia_framework')."</span></a>"; }`
Please do not forget to change Facebook link
Cheers!
YigitSeptember 2, 2014 at 11:00 pm #312542Hi!
There are single quotes in the beginning and at the end of both codes, please do not add them. It should start with “function…” and end with “}”
Cheers!
YigitSeptember 3, 2014 at 9:37 pm #313106This reply has been marked as private.September 3, 2014 at 10:59 pm #313121Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
span.social_widget_icon { background-color: #37589b; } .avia_socialcount a { width: 49%; float: left; }
Regards,
YigitSeptember 4, 2014 at 2:37 pm #313398ty yigit, all working perfectly…
Regards
Alex -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- The topic ‘Replace RSS by Facebook widget (footer)’ is closed to new replies.