longhorn1999 Posted May 10, 2010 Share Posted May 10, 2010 Hi everyone, In my header I have 'My Account', 'Cart Contents', 'Checkout', and a search field in a horizontal row. I'd like to add the AddThis button just to the left of this so that everything lines up properly. I know this is a basic question, but how to I reconcile these two pieces of code? I can't figure out how to get the 'div' structure to work with tables... <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> <a href="http://addthis.com/bookmark.php?v=250" class="addthis_button_compact">Share</a> <span class="addthis_separator"> </span> <a class="addthis_button_facebook"></a> <a class="addthis_button_twitter"></a> <a class="addthis_button_googlebuzz"></a> <a class="addthis_button_email"></a> <span class="addthis_separator"> </span> <a class="addthis_button_facebook_like"></a> </div> <!-- AddThis Button END --> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' › '); ?></td> <?php //---PayPal WPP Modification START ---// $show_user_options = tep_paypal_wpp_show_user_options(); ?> <td align="right" class="headerNavigation"> <?php if ($show_user_options) { ?> <a rel="nofollow" href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?> <a rel="nofollow" href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <img src=images/cart_icon.gif align="top" alt="shopping cart" style="margin:-2px -4px -2px -2px;"> <a rel="nofollow" href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a rel="nofollow" href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> | <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . BOX_HEADING_SEARCH . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-90) . 'px"') . ' ' . tep_hide_session_id() . tep_draw_hidden_field('search_in_description' , '1') . tep_image_submit('button_search.gif', BOX_HEADING_SEARCH, 'align="top"') . '</form>';?> </td> Link to comment Share on other sites More sharing options...
longhorn1999 Posted June 16, 2010 Author Share Posted June 16, 2010 FYI I figured this out much later...I ended up putting the AddThis code into product_info.php so that it appears just above the reviews/add-to-cart buttons, left-justified. It makes much more sense there than in the header. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.