Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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…

    #312541

    Hi 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!
    Yigit

    #312542

    Hi!

    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!
    Yigit

    #313106
    This reply has been marked as private.
    #313121

    Hey!

    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,
    Yigit

    #313398

    ty yigit, all working perfectly…

    Regards
    Alex

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Replace RSS by Facebook widget (footer)’ is closed to new replies.