Jump to content

Moving (Default) placement of share buttons,


jojobean

Recommended Posts

Posted

Hi.

Moving (Default) placement of share buttons, 

Can someone describe how we can move the default position of the share buttons from the bottom of the page to the top?

 

06a68540f850bb3471bc826057f978cf.png

 

Say somewhere in this region?

2195872262906e0597769d5bd34367a2.png

  • 2 weeks later...
Posted

Edit Template: Forum > Front > Topics > Topic

{{if !$topic->container()->disable_sharelinks}}
	<hr class='ipsHr'>
	{template="sharelinks" app="core" group="global" params="$topic"}
{{endif}}

Above is the code for the sharelinks that are found at the bottom of the page, you can leave them there if you want (or delete those lines), but to add additional links to page, and align right (not tested on mobile). Just add the following code:

{{if !$topic->container()->disable_sharelinks}}
<div class='ipsPos_right ipsResponsive_noFloat'>
  {template="sharelinks" app="core" group="global" params="$topic"}
</div>
{{endif}}

after these lines:

			{{if count( $topic->tags() ) OR ( $topic->canEdit() AND $topic::canTag( NULL, $topic->container() ) )}}
				{template="tags" group="global" app="core" params="$topic->tags(), FALSE, FALSE, ( $topic->canEdit() AND $topic::canTag( NULL, $topic->container() ) ) ? $topic->url() : NULL"}
			{{endif}}
		</div>

This is just a quick glance without testing, should get the job done though.

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...