-
AuthorPosts
-
pavit Moderator
pavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
February 14, 2016 at 5:49 pm #882737Hi
You should go to template manager -> Layout tab and in the Responsive Layout select to hide or not a specific position where your module is assigned for various screens sizes
-
1 user says Thank You to pavit for this useful post
February 14, 2016 at 8:16 pm #882867Thank you so much, pavit. It works!
The next problem: I use the position "home-1" for the desktop ad and "home-2" for the smartphone ad.
The result is: the desktop ad is above the content and the smartphone ad is under the content; but I need both above the content.How can I get "home-1" and "home-2" to one position above the content.
What must I do to get the none existing "home-3" and "home-4" under the content.Thank you for your answer.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
February 15, 2016 at 7:02 am #883170How can I get "home-1" and "home-2" to one position above the content.
What must I do to get the none existing "home-3" and "home-4" under the content.Hi there
Yuo can add 2 new positions"home-3" and "home-4" and move "home-2" below "home-1"
for instanceMagazine-home layout is using the mainbody-full block to store these positions so you should edit this file
/templates/ja_teline_v/tpls/blocks/mainbody-full.php and change it as showed below<div class="main"> <?php if ($this->countModules('home-1')) : ?> <div class="wrap <?php $this->_c('home-1') ?>"> <div class="container"> <jdoc:include type="modules" name="<?php $this->_p('home-1') ?>" style="raw" /> </div> </div> <?php endif ?> <?php if ($this->countModules('home-2')) : ?> <div class="wrap <?php $this->_c('home-2') ?>"> <div class="container"> <jdoc:include type="modules" name="<?php $this->_p('home-2') ?>" style="raw" /> </div> </div> <?php endif ?> <div id="t3-mainbody" class="container t3-mainbody"> <?php if($this->hasMessage()) : ?> <jdoc:include type="message" /> <?php endif ?> <!-- MAIN CONTENT --> <jdoc:include type="component" /> <!-- //MAIN CONTENT --> </div> <?php if ($this->countModules('home-3')) : ?> <div class="wrap <?php $this->_c('home-3') ?>"> <div class="container"> <jdoc:include type="modules" name="<?php $this->_p('home-3') ?>" style="raw" /> </div> </div> <?php endif ?> <?php if ($this->countModules('home-4')) : ?> <div class="wrap <?php $this->_c('home-4') ?>"> <div class="container"> <jdoc:include type="modules" name="<?php $this->_p('home-4') ?>" style="raw" /> </div> </div> <?php endif ?> </div>
In the image below you can see resulting layout
-
1 user says Thank You to pavit for this useful post
February 15, 2016 at 8:40 am #883268It works perfectly.
Thank you so much, pavit.
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by joomlartmember 8 years, 2 months ago.
The topic ‘different module display on smartphone or on desktop’ is closed to new replies.
Jump to forum