Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • hftomler Friend
    #940861

    Hi, its posible to change the position of Typo Tools and Share This block? If its not posible, how can i put a banner below?
    Thanks.

    pavit Moderator
    #940865

    Hi there

    You cannot move it but you can add a new module below it

    If you want to achieve it then follow these steps

    make a copy of this file first /templates/ja_magz_ii/html/com_content/article/default.php and name it original_default.php so you can restore it if something goes wrong

    Then edit the file /templates/ja_magz_ii/html/com_content/article/default.php and find

    <?php 
        $sidebar_modules = 'article-sidebar';
        $attrs = array();
        $attrs['style'] = 'T3xhtml';
        $result = null;
        $renderer = JFactory::getDocument()->loadRenderer('modules');
        $sidebar = $renderer->render($sidebar_modules, $attrs, $result); ?>

    Just below it add this part of code

    <?php 
        $bottomshare_modules = 'bottomshare';
        $attrs = array();
        $attrs['style'] = 'T3xhtml';
        $result = null;
        $renderer = JFactory::getDocument()->loadRenderer('modules');
        $bottomshare = $renderer->render($bottomshare_modules, $attrs, $result); ?>
    

    Then find this

    <div class="row">
            <?php if ($tools): ?>
            <div class="col-lg-3">
                <div class="article-tools">
                    <div class="title-reading hide"> <?php echo $this->item->title; ?></div>
                    <?php if ($icons): ?>
                        <div class="default-tools">
                        <?php echo JLayoutHelper::render('joomla.content.magazine_icons', array('item' => $this->item, 'params' => $params)); ?>
                        </div>
                    <?php endif; ?>
    
                    <?php if ($typo_tools): ?>
                    <?php echo JLayoutHelper::render('joomla.content.typo_tools', array()); ?>
                    <?php endif ?>
    
                    <?php if ($sharing_tools): ?>
                    <?php echo JLayoutHelper::render('joomla.content.sharing_tools', array()); ?>
                    <?php endif ?>

    and add just below the endif this code

    <?php if ($bottomshare) : ?>
    <?php echo $bottomshare; ?>
    <?php endif; ?>

    Then publish your banner module in position bottomshare manually adding position name into positions dropdown menu field

    Below i added an image showing resulted page and also i attached modified default.php file

    Best regards


    1. Screenshot_5-2
    1. default-2.zip
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  pavit 7 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum