So based on the above assumptions, I was able to identify something that may help with your situation.
In previous review of the referenced site, the sidebox was appearing on the right side. I don't recall if it was first or some location below that; however, as a result of being on the right side, there is some code in the common directory to display sideboxes on the right. Within that code, it checks to see if the variable $title_link is something other than false. If it is something other than false, then a link is generated around the $title text that is set within includes/modules/YOUR_TEMPLATE/sideboxes/ask_a_question_sidebox.php.
In this case or at this point in execution, $title_link is set to FILENAME_REVIEWS. As a result, the ask a question sidebox is displayed with a link to the reviews, but with text/title of being ask a question. A solution to this is to modify includes/modules/YOUR_TEMPLATE/sideboxes/ask_a_question_sidebox.php towards the end of the file within this section:
Code:
if ($show_blank_sidebox == true) {
require($template->get_template_dir('tpl_ask_a_question_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_ask_a_question_sidebox.php');
$title = BOX_HEADING_ASK_A_QUESTION_SIDEBOX;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
and add an assignment to $title_link.
If it is desired to show an "upper" link that goes to the correct location then:
Code:
if ($show_blank_sidebox == true) {
require($template->get_template_dir('tpl_ask_a_question_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_ask_a_question_sidebox.php');
$title = BOX_HEADING_ASK_A_QUESTION_SIDEBOX;
$title_link = FILENAME_ASK_A_QUESTION; // FILENAME_ASK_A_QUESTION if desire a link in the title. false if do not want the title to be/have a link.
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
If it is to not show such a link with the title of the box, then:
Code:
if ($show_blank_sidebox == true) {
require($template->get_template_dir('tpl_ask_a_question_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_ask_a_question_sidebox.php');
$title = BOX_HEADING_ASK_A_QUESTION_SIDEBOX;
$title_link = false; // false if do not want the title to be/have a link. FILENAME_ASK_A_QUESTION if desire a link in the title.
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
It is unfortunate that this aspect was not incorporated to that plugin, because the associated code was around at least a year before the sidebox plugin was published. What it does seem to show though is that the plugin probably was positioned either as the first sidebox where $title_link was not yet defined, or it was positioned after another sidebox that set $title_link to false as above, and therefore was not observed as an error nor was it published or identified as an issue.
Again though I say that one should be mindful of the use of sideboxes with the current responsive template design(s). As I said, when I initially attempted to observe the issue from a mobile device, the ask a question sidebox was not presented as an active/on screen object. It was in the page's source code, but the css disabled it from view. This means that mobile, tablet, and other narrow display of the page will not present the ask_a_question option to customers. Such a problem is not present with the "original" implementation of this plugin/feature that places the ask a question code in the product_info page.
Bookmarks