Follkes Posted February 19, 2010 Share Posted February 19, 2010 Hi all. After installing a couple of contributions I found a visual glitch in a infobox bar. The idea was to expand it to match the other in the web. After checking the .php involved i found that inserting a name ( in wamp )would do the trick. from: $header_tags_array['product'] = strip_tags($header_tags_array['product']); $parts = explode(" ", $header_tags_array['product']); $heading = $parts[0]; $i = 0; while (strlen($header) < 12) { $header .= ' ' . $parts[$i++]; } $info_box_contents = array(); $info_box_contents[] = array('text' => $header); new infoBoxHeading($info_box_contents, false, false); to: $header_tags_array['product'] = strip_tags($header_tags_array['product']); $parts = explode(" ", $header_tags_array['product']); $heading = $parts[0]; $i = 0; while (strlen($header) < 9) { $header .= 'Viewing..' . $parts[$i++]; } $info_box_contents = array(); $info_box_contents[] = array('text' => $header); new infoBoxHeading($info_box_contents, false, false); The question: Rubbish solution or any idea to set the WIDTH properly ? Thank you. PD: The box can be see at www.hmsistemas.es/shop/catalog/product_info.php/regulador-phocos-cxn20-p-30 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.