Keyword

Trying to shut off MainBody

  • Paul Mitchell
  • Paul Mitchell's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #129799 by Paul Mitchell
Trying to shut off MainBody was created by Paul Mitchell
Hi,

I am trying to disable the Mainbody of the Gantry template I am using to create a different first page. I have tried to do this at the template level but I believe that some controls and features in K2 are having an effect on it remaining active. Also, there is a "back to top" scroll button that is enabled in the area and it is not the one created by Gantry. The one created by Gantry is in the "copyright" area of the template. I believe this scroll link might be preventing the Mainbody area from being shut off -- but you tell me. Any insight on this would be appreciated.

Thanks

Paul

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129800 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Trying to shut off MainBody
Hello Paul,

I am not sure what you are trying to achieve. The back to top button is a part of the K2 item layout. This is not a part of a listed layout.

In any case you should read the Gantry documentation and contact the template developer about this issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Paul Mitchell
  • Paul Mitchell's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #129801 by Paul Mitchell
Replied by Paul Mitchell on topic Re: Trying to shut off MainBody
Hi Krikor,

I have already accounted for the "back to top" link button on the Gantry template. It is in the copyright area of the template. The "back to top" link button I am referring to is in the Mainbody area, so I know it belongs to K2. So I wish to turn it off as well as any other features that would be affecting the Mainbody area. I have searched all over the K2 interface for the toggle that would control this "back to top" button link and could not find it. You say it is part of the K2 item layout, so please tell me where to find and disable it, as well as any other features that may be keeping the Mainbody active.

Thank you in advance!

Paul

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129802 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Trying to shut off MainBody
The "back to top button" is on the K2 item file (item.php).

To manually remove it simply remove this line of code.
<?php if(!JRequest::getCmd('print')): ?>
	<div class="itemBackToTop">
		<a class="k2Anchor" href="<?php echo $this->item->link; ?>#startOfPageId<?php echo JRequest::getInt('id'); ?>">
			<?php echo JText::_('K2_BACK_TO_TOP'); ?>
		</a>
	</div>
	<?php endif; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum