-
AuthorPosts
-
bobgen Friend
bobgen
- Join date:
- January 2006
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
August 28, 2010 at 11:39 pm #153895Hi, how is possible to put new module on position between logo and search on top of Purity II template? See picture in attachment.
Thank you.
Don Lee FriendDon Lee
- Join date:
- March 2010
- Posts:
- 923
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 41
- Thanked:
- 274 times in 238 posts
August 30, 2010 at 4:28 am #354087<em>@bobgen 192032 wrote:</em><blockquote>Hi, how is possible to put new module on position between logo and search on top of Purity II template? See picture in attachment.
Thank you.</blockquote>Hi bobgen,
To have it at top like the attached image, try my way as the following:
Open file templates/ja_purity_ii/layouts/blocks/header.php for edit. Find this code at line 25:
<?php if($this->countModules('search')) : ?>
Insert before:
<?php if($this->countModules('banner')) : ?>
<div id="ja-banner">
<jdoc:include type="modules" name="banner" />
</div>
<?php endif; ?>
Open file templates/ja_purity_ii/css/template.css. Find this code at line 1378:
#ja-banner {
border-top: 1px solid #ccc;
margin: 0;
overflow: hidden;
padding-top: 15px;
text-align: center;
width: 100%;
}
Replace:
#ja-banner {
overflow:hidden;
position:absolute;
text-align:center;
top:12px;
width:100%;
}
Finally, go to manage your banner module, assign it to banner position.bobgen Friendbobgen
- Join date:
- January 2006
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
August 31, 2010 at 12:59 am #354169Don Lee FriendDon Lee
- Join date:
- March 2010
- Posts:
- 923
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 41
- Thanked:
- 274 times in 238 posts
August 31, 2010 at 1:35 am #354172<em>@bobgen 192240 wrote:</em><blockquote>It works. Very nice. Thank you. Right side of banner is about 2 px over search icons.
8778</blockquote>
For this, you can select a smaller image, or fix the above code such as:
#ja-banner {
overflow:hidden;
position:absolute;
text-align:center;
top:12px;
width:100%;
width: 400px;
left: 200px;
}
Remember to adjust the numbers to have a best fit.bobgen Friendbobgen
- Join date:
- January 2006
- Posts:
- 50
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
August 31, 2010 at 10:10 am #354240Thank you.
April 9, 2011 at 9:02 pm #385564Hi,
I’d like to use that same space for just a text slogan. How do I add some text properties into the space? I tried to use the search module position, but as you can see in the image, it just didn’t quite work. 🙂 Thanks in advance for your help!
May 9, 2011 at 5:31 pm #390441I have followed the instructions as best I can, but can’t get this position to appear on my site. I don’t have any real experience with php, so I’m probably making some obvious mistake. I have tried adding the php code two separate ways. First, exactly as stated, before the search bit, like this:
[PHP]<?php if($this->countModules(‘banner’)) : ?>
countModules(‘search’)) : ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”search” />
</div>[/PHP]Then I tried to make it match the way the search bit was set up, so I tried it like this:
[PHP]<?php if($this->countModules(‘banner’)) : ?>
<div id=”ja-banner”>
<jdoc:include type=”modules” name=”banner” />
</div>
<?php if($this->countModules(‘search’)) : ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”search” />
</div>[/PHP]I tried just using the banner position for a custom HTML module, and also for the built-in banner module/component, and I can’t get anything to show. In fact, when I tried it the second way (with the extra code), the whole site disappeared/wouldn’t show. Any advice on how to get this to work? I just need to get my site’s title and slogan up next to the logo image, as seen in my April 9th post.
Thanks very much,
JillP.S. I’m running version 1.5.22 on Cloudaccess’ web-based platform. Working URL is http://jpa4auditors.cloudaccess.net/
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 13, 2011 at 2:41 am #391030You code are wrong now. Please change:
<?php if($this->countModules('banner')) : ?>
<div id="ja-banner">
<jdoc:include type="modules" name="banner" />
</div>
<?php if($this->countModules('search')) : ?>
<div id="ja-search">
<jdoc:include type="modules" name="search" />
</div>
to<?php if($this->countModules('banner')) : ?>
<div id="ja-banner">
<jdoc:include type="modules" name="banner" />
</div>
<?php endif; ?>
<?php if($this->countModules('search')) : ?>
<div id="ja-search">
<jdoc:include type="modules" name="search" />
</div>
<?php endif; ?>September 28, 2011 at 12:13 am #415406Sorry to resurrect an old post, but I am having basically this issue. I am upgrading a site to Joomla 1.7, everything seems good except I really need to add a linked separate image next to the logo image in the header. The latest template installation does not have a layouts folder and does not have header.php. Can anyone help me to find where to add in a module position within the header or where I can just insert some custom HTML? Thanks!
September 28, 2011 at 7:48 am #415446That a good idea.Thank you!:)
October 1, 2011 at 2:38 pm #416017<em>@lou_p 271059 wrote:</em><blockquote>Sorry to resurrect an old post, but I am having basically this issue. I am upgrading a site to Joomla 1.7, everything seems good except I really need to add a linked separate image next to the logo image in the header. The latest template installation does not have a layouts folder and does not have header.php. Can anyone help me to find where to add in a module position within the header or where I can just insert some custom HTML? Thanks!</blockquote>
UP! (I have the same question)
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 5, 2011 at 11:10 am #417012<em>@pscc 271895 wrote:</em><blockquote>UP! (I have the same question)</blockquote>
What’s exactly your question?
Thanks
Viet VuOctober 8, 2011 at 3:06 am #417660How to add some html next to the logo image in the header (J1.7)?
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 9, 2011 at 1:08 am #417805<em>@pscc 273922 wrote:</em><blockquote>How to add some html next to the logo image in the header (J1.7)?</blockquote>
Hi
This thread is owned by another person, not you. Please create a new thread w/ your own question ( and only 1 ) . It should be nice and help us ( also you ) to follow your troubles.
Thank you
Viet VuAuthorPostsViewing 14 posts - 1 through 14 (of 14 total)This topic contains 14 replies, has 8 voices, and was last updated by jooservices 13 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum