-
AuthorPosts
-
newtybar Friend
newtybar
- Join date:
- December 2010
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
January 19, 2011 at 10:52 pm #159022Hi,
I would like to add a new module section in my template but am not quite sure how to do so. Right now it has the Content Slider position and then right below it is the Main Body position. I would like to have another position below the Content Slider position that is the same size.
I included the picture below to illustrate my point.
Thank you very much!
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 19, 2011 at 11:53 pm #372766Open templates>ja_lead>index.php and find the following code around line 169
<?php if( $this->countModules('ja-topsl') ) { ?>
<!-- TOP SPOTLIGHT-->
<div id="ja-topsl">
<div class="ja-innerpad clearfix">
<jdoc:include type="modules" name="ja-topsl" style="xhtml" />
</div></div>
<!-- //TOP SPOTLIGHT -->
<?php } ?>Below it add
<?php if( $this->countModules('ja-topsl2') ) { ?>
<!-- TOP SPOTLIGHT2-->
<div id="ja-topsl">
<div class="ja-innerpad clearfix">
<jdoc:include type="modules" name="ja-topsl2" style="xhtml" />
</div></div>
<!-- //TOP SPOTLIGHT2 -->
<?php } ?>Then in your module manager put your new module in position ja-topsl2 (you will have to manually type it into the position box).
1 user says Thank You to Phill for this useful post
newtybar Friendnewtybar
- Join date:
- December 2010
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
January 20, 2011 at 12:29 am #372768thanks worked great!
How do I adjust the height on this module position? Thank you!
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 20, 2011 at 12:33 am #372770In what way? It works on my testbed. Can you detail what failed and post a link?
newtybar Friendnewtybar
- Join date:
- December 2010
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
January 20, 2011 at 12:54 am #372773Phil – it was operator error on my part – I entered the code wrong and edited my post accordingly.
Is there any way I can make the section larger?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 20, 2011 at 8:05 am #372838In what way larger? The height of the module will expand depending on how much content you put in it.
Or do you want the whole block wider? If that is the case you have to reduce the width of the column on the left too.
Edit the code in red below accordingly
templates>ja_lead>themes>lead line 711ish
#ja-mainbody {
float: left;
width: 650px;}
The figure in red controls the width of the main body
And in template.css line 730ish
#ja-col2 {
float:right;
font-size:92%;
width:310px;}
Simply adjust the pair until you get the ratios you want. Remeber the pair must add up to the same so if you increase one decrease the other by the same amount.
newtybar Friendnewtybar
- Join date:
- December 2010
- Posts:
- 30
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
January 20, 2011 at 6:59 pm #372902I see…maybe it is an issue with the module I am using then because it is not expanding heightwise.
here is a link to the site…the item description is getting cut off.
http://www.rummageclothing.com/
thanks again Phil! you’ve been a great help.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 20, 2011 at 9:45 pm #372932Thanks for your PM.
It does appear to be strange that this module does not size correctly. As a quick fic I have applied a custom class called high to your module. To get it to have the desired effect you will need to add the following code to the bottom of your template.css file
.high {height:380px;}
Take a look at the custom class I have added to your module if you need it elsewhere.
1 user says Thank You to Phill for this useful post
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by Phill 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum