-
AuthorPosts
-
October 14, 2010 at 12:02 am #358859
<em>@tienhc 197249 wrote:</em><blockquote>To create a new position, now you go to the module manager => you create a new banner module => you type this name into the position parameter and save or follow to this entry http://docs.joomla.org/How_do_you_add_a_new_template_position%3F</blockquote>
Hello, I would like to add a new module position to the ja_social template – following the instructions in the above post makes sense, IF you know which PHP page you need to edit!
The /ja_social/template/index.php file contains no such code, merely code that builds the framework.
Can you please indicate what PHP file I need to edit?
To be even more specific, I am looking to add ‘bottom’ above the user 6/7/8/9/10 positions, in the same ‘area’ (ie the white panel) as the left/right positions. It should be as wide as the corresponding article that would appear above it.
Thanks!
Lee
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 14, 2010 at 4:06 am #358885<em>@bootdisk 198364 wrote:</em><blockquote>Hello, I would like to add a new module position to the ja_social template – following the instructions in the above post makes sense, IF you know which PHP page you need to edit!
The /ja_social/template/index.php file contains no such code, merely code that builds the framework.
Can you please indicate what PHP file I need to edit?
To be even more specific, I am looking to add ‘bottom’ above the user 6/7/8/9/10 positions, in the same ‘area’ (ie the white panel) as the left/right positions. It should be as wide as the corresponding article that would appear above it.
Thanks!
Lee</blockquote>
Please follow to the post: #2 http://www.joomlart.com/forums/topic/module-place-for-banner-at-search-position/#post-357783Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 14, 2010 at 4:08 am #358886<em>@msilac 198021 wrote:</em><blockquote>Now looks ok, but why is that red background at this module??
And can it be 5-10 pix moved from logo?</blockquote>
#ja-leftopbanner {
background:none repeat scroll 0 0 red;
bottom:40px;
height:50px;
position:absolute;
right:0;
width:468px;
}
you add value for the bottom attribute of this block http://www.joomlart.com/forums/topic/module-place-for-banner-at-search-position/#post-357783
msilac Friendmsilac
- Join date:
- October 2010
- Posts:
- 548
- Downloads:
- 2
- Uploads:
- 74
- Thanks:
- 115
- Thanked:
- 5 times in 1 posts
October 15, 2010 at 6:15 pm #359154When I change bottom:40; to (for example 60px9)
the banner goes upWhen I change right:0; (for example 5px)
the banner goes like in attachmentWhat is wrong? I just want to move that module from logo to right for 5-10pix.
wicklert Friendwicklert
- Join date:
- September 2006
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
October 16, 2010 at 7:34 pm #359275<em>@tienhc 196964 wrote:</em><blockquote>you open the file: templatesja_socialblocksheader.php and find the following code:
[PHP] <?php $this->genBlockEnd ($block) ?>[/PHP]
replace:
[PHP]
<?php if($this->countModules(‘lefttop’)) : ?>
<div id=”ja-leftopbanner”>
<jdoc:include type=”modules” name=”lefttop” />
</div>
<?php endif; ?>
<?php $this->genBlockEnd ($block) ?>
[/PHP]
</blockquote>The code in header.php is on line 17 AND 41…….just replace only the code on line 41.
wicklert Friendwicklert
- Join date:
- September 2006
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
October 16, 2010 at 7:38 pm #359276<em>@msilac 198021 wrote:</em><blockquote>Now looks ok, but why is that red background at this module??
And can it be 5-10 pix moved from logo?</blockquote>
<em>@tienhc 198392 wrote:</em><blockquote>#ja-leftopbanner {
background:none repeat scroll 0 0 red;
bottom:40px;
height:50px;
position:absolute;
right:0;
width:468px;
}
</blockquote>Remove “red” in line 2 (background).
msilac Friendmsilac
- Join date:
- October 2010
- Posts:
- 548
- Downloads:
- 2
- Uploads:
- 74
- Thanks:
- 115
- Thanked:
- 5 times in 1 posts
October 17, 2010 at 10:33 am #359300wicklert Friendwicklert
- Join date:
- September 2006
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
October 17, 2010 at 11:25 am #359302<em>@msilac 198908 wrote:</em><blockquote>And about moving banner from logo for 5-10 pix. here is my attachment. Is that ok?</blockquote>If I was you, I should reduce the large image a few px’s….!!
Moving banner will show them outside main template boundaries. Asking myself if that would be neat…!!
Editing must be done in template.css, not in header.php,
-
1 user says Thank You to wicklert for this useful post
msilac Friendmsilac
- Join date:
- October 2010
- Posts:
- 548
- Downloads:
- 2
- Uploads:
- 74
- Thanks:
- 115
- Thanked:
- 5 times in 1 posts
October 17, 2010 at 12:51 pm #359306That’s do the trick! Thank you!
AuthorPostsThis topic contains 24 replies, has 4 voices, and was last updated by msilac 14 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum