Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
6.9k views
in Q2A Core by
Any guide of how to change the footer of Q2A?

 

I want to add extra info next to the feedback link.
Q2A version: 1.6.1

1 Answer

+3 votes
by

You can implement the footer abstract method and add all your additional code to that function. Here is some sample code:

In your theme's qa-theme.php file, add the following inside the qa_html_theme class definition:

function custom_links_footer() {
$this->output('<div class="NEW CLASS">');
$this->output('YOUR LINKS HERE');
$this->output('</div>');
}
 
function footer()
{
$this->output('<div class="qa-footer">');
$this->nav('footer');
custom_links_footer();
$this->attribution();
$this->footer_clear();
$this->output('</div> <!-- END qa-footer -->', '');
}
 
Please let me know if this helped you.

 

by
This is my qa-theme.php (for donut theme):

"
<?php
    if ( !defined( 'QA_VERSION' ) ) { // don't allow this page to be requested directly from browser
        header( 'Location: ../../' );
        exit;
    }

    /**
     * Defines the base directory of the theme
     */
    @define( 'DONUT_THEME_BASE_DIR', dirname( __FILE__ ) );

    /**
     * define the directory name of the theme directory
     */
    @define( 'DONUT_THEME_BASE_DIR_NAME', basename( DONUT_THEME_BASE_DIR ) );

    /**
     * Defines the base directory of the theme
     */
    @define( 'DONUT_THEME_TEMPLATE_DIR', DONUT_THEME_BASE_DIR . '/templates/' );

    /**
     * define the version of the theme that is installed
     */
    @define( 'DONUT_THEME_VERSION', "2.0.0" );

    /**
     * include the required files for the theme
     */
    require_once DONUT_THEME_BASE_DIR . '/utils/qa-donut-utils.php';
    require_once DONUT_THEME_BASE_DIR . '/utils/donut-options.php';
    require_once DONUT_THEME_BASE_DIR . '/qa-donut-layer.php';

"

There is no such "qa_html_theme class definition" inside qa-theme.php for donut theme, check above code. Where should I add your given code ?
...