Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
5.0k views
in Themes by
Hello All,

How i can rss link on home page moved from sidebar to footer ?

Thanks.
by
Where exactly do you want it to be? A screenshot would help
by
here is screenshot:

http://s14.postimg.org/4ykmvksqp/image.png

remove rss from sidebar and add in footer

Thanks.

1 Answer

+1 vote
by
edited by
 
Best answer
You'll have to do a few things:
 
1. Open your qa-theme/<your-current-theme>/qa-theme.php file
2. Most likely there is not a doctype() function so add this one to it:
 
function doctype() {
    qa_html_theme_base::doctype();
    if (isset($this->content['feed'])) {
        $this->content['navigation']['footer']['feed'] = $this->content['feed'];
    }
}
 
3. Same thing with the feed() function (which is a bit empty for your case):
 
function feed() {}
 
This will display the RSS link with the same content as before but in your footer. EG: It will say "Recent activity" if you're in the "All activity" section. So if you want to override the text of the link so that it becomes "RSS" as in your screenshot you should change the step 2 for this step:
 
2. Most likely there is not a doctype() function so add this one to it:
 
function doctype() {
    qa_html_theme_base::doctype();
    if (isset($this->content['feed'])) {
        $this->content['navigation']['footer']['feed'] = array(
            'url' => $this->content['feed']['url'],
            'label' => 'RSS',
        );
    }
}
by
yes now work fine
by
when i open page with question then i get this error on top:

Notice: Undefined index: feed in /qa-include/qa-theme-base.php on line 201
by
Oh it makes sense as not all pages have feed. I've edited my answer adding the isset checks
by
this work :)
...