Setup an image as a hyperlink?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
jason.armitage
Registered User
Posts: 4
Joined: Sat Mar 08, 2008 10:28 am

Setup an image as a hyperlink?

Post by jason.armitage »

Hi, my forum is http://www.fixmycountry.co.uk
i have some knowledge of how to build html websites but have no clue about php. I have installed SiteGroundPHPbb6 an edited the top banner logo but i dont know how to make this a link back to the home page. Im sure this is very basic but im a total newbie to this.
Any help would be much apreciated.

Cheers
Jase
saz3rx
Registered User
Posts: 181
Joined: Wed Jul 18, 2007 3:22 pm

Re: Setup an image as a hyperlink?

Post by saz3rx »

You can use the html <a> link tags for linking it to your website. It works :).
jason.armitage
Registered User
Posts: 4
Joined: Sat Mar 08, 2008 10:28 am

Re: Setup an image as a hyperlink?

Post by jason.armitage »

ok, mabey i dont know as much as i thought. How do i do that? This php is great but editing it is hard work, is there no way edit it like html? :?:
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Setup an image as a hyperlink?

Post by prototech »

I'm not exactly sure what you're seeing... the template files do not have any PHP in them. You have to edit templates/SiteGroundPHPbb6/overall_header.tpl (you're in the wrong forum this is for 3.0.x - your board is 2.0.x) which is only HTML.
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
jason.armitage
Registered User
Posts: 4
Joined: Sat Mar 08, 2008 10:28 am

Re: Setup an image as a hyperlink?

Post by jason.armitage »

my board is 3.0.0 i was in the process of upgrading, sorry for any confusion
ScionCrow
Registered User
Posts: 3621
Joined: Fri Feb 13, 2004 6:59 am
Location: Darkness

Re: Setup an image as a hyperlink?

Post by ScionCrow »

How you want to create the link is up to you. There are a couple ways to go about this.. You can use PHP to handle the link (which I have a tendency to do on occasions) or you just use plain HTML.

Code: Select all

<a href="http://www.yourlink.com"><img src="where/your/image/lies.jpg"></a> - Image as link
You can just replace the image part of the code with text, or you just put text before the </a> to have text beside the image, just be sure to put a space after the .jpg"> so the text won't be right up next to the image.
No longer supporting phpBB. PM or email me regarding support and you will be ignored. I'm fully done with phpBB and everything.
Locked

Return to “[3.0.x] Styles Support & Discussion”