EduGeek Joomla 1.0 Package Thread, Joomla Template Header Question in Projects:; Hi,
I was wondering how I go about inserting links into the main template header. I know there is already ...
-
24th January 2008, 04:15 PM #1
- Rep Power
- 12
Joomla Template Header Question
Hi,
I was wondering how I go about inserting links into the main template header. I know there is already one there on the left that links back to the homepage. I have the school name, phone number and e-mail address on there and I want to make the e-mail address a mailto: link. I have tried creating slices in both photoshop and fireworks but to no avail. I'm sure I'm missing something glaringly obvious!
On another related issue - Is it possible to add a module within the header itself? I have been playing with a text size addon from joomla extensions that works great but would like to be able to add a simple module within the header itself like on the main joomla site:
http://www.joomla.org/
Thanks!
-
-
IDG Tech News
-
27th January 2008, 11:14 AM #2
- Rep Power
- 12
-
-
27th January 2008, 12:19 PM #3 Let me look into this. Will get back to you soon.
-
-
21st February 2008, 05:51 PM #4
- Rep Power
- 12
Any news on this? - Sorry to drag it up but it's doing my head in!!
-
-
21st February 2008, 08:14 PM #5 Which theme you using rusty?
-
-
22nd February 2008, 12:34 AM #6
- Rep Power
- 12
Hi - thanks for getting back, I am using eg_default
-
-
22nd February 2008, 12:43 AM #7 I'm looking into the first question. Means me creating an image map myself, so will take some time.
As for your second question there is already a module posotion available within the header "User4" You could try publishing your module there and then edit the css to change the stlye if needed.
-
-
22nd February 2008, 01:15 AM #8 Right I have had alook at the image maped header image. For this to work you will loose the image border function.
Use Photoshop to create your new sliced image map header image and use the save for web option and save both the images and html
Edit the index.php of the theme and remove the following:
Code:
<!-- Start Image Border Script-->
<script type="text/javascript">
//<![CDATA[
var png_overlay = '<?php echo $mosConfig_live_site;?>/templates/eg_default/js/wide_frame.png';
var suffix = '_over';
//]]>
</script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/eg_default/js/png.js"></script>
<!-- End Image Border Script-->
Open the newly created html from Photoshop in a text editor and copy the image slice code and paste it into the index.php under <div id="header">
Edit the themes.css.css file and remove line 43:
Code:
background-image: url('../images/header.png'); Upload the images from the sliced image to the images folder of the theme.
You should now have a image map header.
Hope that makes sense.
-
Thanks to SYSMAN_MK from:
rusty155 (22nd February 2008)
-
22nd February 2008, 11:21 AM #9
- Rep Power
- 12
Thanks a lot Sysman.
There is just one thing intriguing me - the home link within the header on the school logo. There is a blank.gif image there that links back to the homepage of the site. Whereabouts is this referred to in the code, and is it possible to move it and or create a similar one the other side of the header for a mailto link without having to lose the image border functionality?
Sorry to be a real pain!
-
-
22nd February 2008, 10:01 PM #10 Right had another look and this can be done in the following way.
Add the following to the index.php file under the <div id="headerl"> entry:
Code:
<div id="headerr"><a href="%your link goes here%"><img src="<?php echo $mosConfig_live_site;?>/templates/eg_default/images/blank.gif" width="%width of link area%" height="%height of link area%" alt="<?php echo $mosConfig_sitename;?>" border="" /></a></div>
Change the link, width and height details to create the link area required.
Add the following to the template_css.css:
Code:
#headerr{
position: relative;
top: 30px;
left: 26px;
float: right;
text-align: right; /* ie */
} Edit the top and left values to move the location of the link area.
You should now have second link. I tried this on my demo server and worked a treat. Hope it help you out.
-
SHARE:
Similar Threads
-
By georgebush in forum EduGeek Joomla 1.0 Package
Replies: 8
Last Post: 26th November 2007, 04:18 PM
-
By Quackers in forum Web Development
Replies: 1
Last Post: 12th July 2007, 09:47 AM
-
By bensewell in forum Web Development
Replies: 2
Last Post: 5th July 2007, 09:11 AM
-
By bensewell in forum Web Development
Replies: 2
Last Post: 26th June 2007, 07:09 AM
-
By russdev in forum Web Development
Replies: 3
Last Post: 23rd April 2007, 03:29 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules