0 votes
QA 218 views

How to make a link image on every answer page ?

is it possible to create link to all answer pages the link should be on images ?
Here i given my reference please go through
please Guide me to complete this task ?
i'm waiting for your quick reply
by nijamutheen060 asked Apr 30, 2018 in Themes

Please log in or register to add a comment.

Please log in or register to answer this question.

1 Answer

+1 vote
  1. How to make of my-layer plugin.
  2. Overload function inner qa-my-layer.php

public function post_meta($post, $class, $prefix = null, $separator = '<br/>') {
    qa_html_theme_base::post_meta($post, $class, $prefix, $separator);
    $html = ob_get_clean();
    if($class == 'qa-a-item') {
        $lastspan = strrpos($html, '</span>');
        if($lastspan !== false) {
            $addtags = '<img class="qa-a-item-img" src="http://your-site/?qa=blob&qa_blobid=????" width="??" height="??"/>';
            $html = substr($html, 0, $lastspan).$addtags.substr($html, $lastspan, strlen('</span>'));


by webmaster answered Aug 16, 2018
by webmaster edited Aug 16, 2018

Please log in or register to add a comment.