How do I create a Link on my forum Header?

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
bosunjohnson
Registered User
Posts: 35
Joined: Sun Nov 24, 2019 5:50 pm

How do I create a Link on my forum Header?

Post by bosunjohnson »

Hello everyone and thanks for making life simple and easy.

I have a forum that i want to header forum text(see below) to be a link so it can be clicked on.

How do I achieve this please?

See below.
You do not have the required permissions to view the files attached to this post.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: How do I create a Link on my forum Header?

Post by Lumpy Burgertushie »

what do you want it to link to?

the logo already links to the index page or whatever you want to set it to in the admin panel.

to make the actual text of the site name to be a link would require an edit to the template files that you would have to redo each time you update etc.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72612
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK

Re: How do I create a Link on my forum Header?

Post by KevC »

A link forum would be much simpler. Realistically, no one will ever click that.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
bosunjohnson
Registered User
Posts: 35
Joined: Sun Nov 24, 2019 5:50 pm

Re: How do I create a Link on my forum Header?

Post by bosunjohnson »

Lumpy Burgertushie wrote: Sun Dec 15, 2019 5:11 pm what do you want it to link to?

the logo already links to the index page or whatever you want to set it to in the admin panel.

to make the actual text of the site name to be a link would require an edit to the template files that you would have to redo each time you update etc.

robert
I want to be site name to link back to the forum index.
bosunjohnson
Registered User
Posts: 35
Joined: Sun Nov 24, 2019 5:50 pm

Re: How do I create a Link on my forum Header?

Post by bosunjohnson »

KevC wrote: Sun Dec 15, 2019 5:27 pm A link forum would be much simpler. Realistically, no one will ever click that.
I want to be site name to link back to the forum index.
How do I create a link forum?
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72612
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK

Re: How do I create a Link on my forum Header?

Post by KevC »

The site logo, the board index text at the top and bottom of the page and the jump list all already do that for you.

A link forum is a special one like the area51 link on the index here. Create forum> Forum type> link.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
Talk19Zehn
Registered User
Posts: 912
Joined: Tue Aug 09, 2011 1:10 pm

Re: How do I create a Link on my forum Header?

Post by Talk19Zehn »

@ bosunjohnson - if you absolutely want to change it, please test this way: prosilver 3.2.8 (!) ...

NEW class(es) CSS: ... ;)

Code: Select all

h1 a { color: #FFF; }
h1 a:hover { color: #CCC; }
*)
... or realize the CSS:

Code: Select all

h1 a {
	color: #FFF;
	text-decoration: underline;
}
h1 a:hover {
	color: #CCC;
	text-decoration: underline;
}
HTML: overall_header.html
find that container:

Code: Select all

			<div id="site-description" class="site-description">
				<a id="logo" class="logo" href="<!-- IF U_SITE_HOME -->{U_SITE_HOME}<!-- ELSE -->{U_INDEX}<!-- ENDIF -->" title="<!-- IF U_SITE_HOME -->{L_SITE_HOME}<!-- ELSE -->{L_INDEX}<!-- ENDIF -->"><span class="site_logo"></span></a>
				<h1>{SITENAME}</h1>
				<p>{SITE_DESCRIPTION}</p>
				<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
			</div>
and replace its content:

Code: Select all

			<div id="site-description" class="site-description">
				<a id="logo" class="logo" href="<!-- IF U_SITE_HOME -->{U_SITE_HOME}<!-- ELSE -->{U_INDEX}<!-- ENDIF -->" title="<!-- IF U_SITE_HOME -->{L_SITE_HOME}<!-- ELSE -->{L_INDEX}<!-- ENDIF -->"><span class="site_logo"></span></a>
				<h1><a href="{U_INDEX}" title="{L_INDEX}"><span>{SITENAME}</span></a></h1>
				<p>{SITE_DESCRIPTION}</p>
				<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
			</div>

Clear after your work all caches and browser-caches(!).

Greetings

*) Edit ...
Supplement only CSS-Code - Example

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