vidmarc Posted May 30, 2018 Share Posted May 30, 2018 (edited) I think this would be a better place for it to more prominent. I've tinkered around with contrent.product.php but I just can't get it right. Any suggestions? Edited June 2, 2018 by vidmarc Quote Link to comment Share on other sites More sharing options...
vidmarc Posted June 2, 2018 Author Share Posted June 2, 2018 (edited) 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 June 2, 2018 by vidmarc Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 2, 2018 Share Posted June 2, 2018 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. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted June 3, 2018 Author Share Posted June 3, 2018 (edited) 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 June 3, 2018 by vidmarc Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 3, 2018 Share Posted June 3, 2018 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">'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.