End of Support for Joomla 3 - Forum closed
Print & E-mail button location
- cliftyview
- Topic Author
- Visitor
- Thank you received: 0
Is there a way to move the Print/E-mail buttons to the top right of the article like in the default Protostar template. Some of our articles are long and if not at the top users may not see them. Sample of the long article and position at
new.cliftyview.com/new/index.php/availability/seedling-products
by cliftyview
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Possible is everything, but not with just one click!
If you want to have the icons at the top of the page you have to create an override.
For example, just take the Joomla article layout /warp/systems/joomla/layouts/com_content/article/default.php and copy it to your folder /layouts/com_content/article/default.php and modify it. ( Line 131 -138 are the print icons)
Now your modified article layout file will be used instead of the default system layout.
If you want to have the icons at the top of the page you have to create an override.
For example, just take the Joomla article layout /warp/systems/joomla/layouts/com_content/article/default.php and copy it to your folder /layouts/com_content/article/default.php and modify it. ( Line 131 -138 are the print icons)
Now your modified article layout file will be used instead of the default system layout.
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
Last Edit:9 years 10 months ago
by joomlaplates
Last edit: 9 years 10 months ago by joomlaplates.
Please Log in or Create an account to join the conversation.
- cliftyview
- Topic Author
- Visitor
- Thank you received: 0
Almost right. The file to modify was actually /warp/systems/joomla/layouts/article.php. I used the info below but instead moved the code tothe very top and bingo it works!
info I found.....
OPen up the themes /warp/systems/joomla/layouts/article.php with a Code Editor like Sublime Text 2 and look for the following at around line 74,
<?php if ($edit) : ?>
<p><?php echo $edit; ?></p>
<?php endif; ?>
Cut and paste to line 59 so it is just below,
<?php echo $hook_beforearticle; ?>
info I found.....
OPen up the themes /warp/systems/joomla/layouts/article.php with a Code Editor like Sublime Text 2 and look for the following at around line 74,
<?php if ($edit) : ?>
<p><?php echo $edit; ?></p>
<?php endif; ?>
Cut and paste to line 59 so it is just below,
<?php echo $hook_beforearticle; ?>
by cliftyview
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates