Jump to content

Moving AddThis to Product Information/Specification strip


vidmarc
 Share

Recommended Posts

I've managed to get it in position - but I need to align it to the centre, or right.

I tried a <div align=right>, but it had no effect. Any suggestions?

 

         {foreach from=$PRODUCT_TABS_TITLES item=product_tab_title}
            {$product_tab_title}
         {/foreach}
   {if $SHARE}
   {foreach from=$SHARE item=html}
   {$html}
   {/foreach}
   {/if}
      </dl>

 

Success - but using <object align="right">

sample: http://mondo-macabro.com/blu-ray/symptoms.html

Edited by vidmarc
Link to comment
Share on other sites

I'm not seeing what you are describing, but on the sample page:

<div style="height:34px;text-align:center;" class="addthis_toolbox addthis_default_style addthis_32x32_style social_wrapper">
  <a class="addthis_button_facebook_like"></a>
  <a class="addthis_button_facebook"></a>
  <a class="addthis_button_twitter"></a>
  <a class="addthis_button_pinterest_share"></a>
  <a class="addthis_button_tumblr"></a>
  <a class="addthis_button_compact"></a>
</div>

Note the text-align:center; code added to the style attribute.

 

Link to comment
Share on other sites

Can I change what's in content.product.php to what you have above, or do I need to add the styling to the SHARE code elsewhere?

 

<object align="right">
   {if $SHARE}
   {foreach from=$SHARE item=html}
   {$html}
   {/foreach}
   {/if}
</object>

 

in element.social.php I see this:

 

{if $SOCIAL_LINKS}
<div class="element-social">
   <h3>{$LANG.common.follow_us}</h3>
   <ul class="small-block-grid-4 no-bullet nomarg social-icons text-left">
      {foreach from=$SOCIAL_LINKS item=link}
      <li><a href="{$link.url}" title="{$link.name}" target="_blank" rel="noopener noreferrer"><svg class="icon"><use xlink:href="#icon-{$link.icon}"></use></svg></a></li>
      {/foreach}
   </ul>
</div>{/if}

 

Edited by vidmarc
Link to comment
Share on other sites

In the file /modules/social/AddThis/social.class.php:

Near line 45, find:

$this->_html[] = '<div class="'.implode(' ', $wrapper_style).' social_wrapper" style="height: '.$height.'px">';

Change to:

$this->_html[] = '<div class="'.implode(' ', $wrapper_style).' social_wrapper" style="text-align: center; height: '.$height.'px">';

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...