Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-08-31 23:21:48

Bob L
Member
Registered: 2012-11-23
Posts: 62
Website

Masthead - Change the Hyperlink

I've created a slideshow for my homepage with the Theater module. I would like to change the masthead hyperlink from the home page which is now the slideshow to the galleries page. Is this possible?

Thanks,

Bob

Offline

#2 2016-09-01 08:39:08

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Masthead - Change the Hyperlink

There's no way to change the URL; you can only disable the masthead being a hyperlink.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2016-09-01 10:59:13

Bob L
Member
Registered: 2012-11-23
Posts: 62
Website

Re: Masthead - Change the Hyperlink

Matt,

Thanks for the answer.

Bob

Offline

#4 2016-09-01 11:17:30

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Masthead - Change the Hyperlink

There's no way to change the URL; you can only disable the masthead being a hyperlink.

Hmmm... The masthead could be replaced using phplugins' ttg_masthead_top function. Then you can have the hyperlink point to whatever page you desire.

If you feel adventurers, enable phplugins, select phplugins.php and add following lines.

function ttg_masthead_top ( $style, $path ) { 
	echo '
	<div class="masthead">
		<div class="content page__width">
			<a href="http://justwalkingaround.com/galleries/">
				<img src="http://www.justwalkingaround.com/backlight/designer/?c=page&a=image&p1=8" alt="Just Walking Around...." class="identity_plate" width="250" height="60" />
			</a>
		</div>
	</div><!-- .masthead -->	
	';
return false;
} // end ttg_masthead_top

*) Before you can select phplugins.php, you have to rename phplugins-sample.php to phplugins.php.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2016-09-01 20:18:06

Bob L
Member
Registered: 2012-11-23
Posts: 62
Website

Re: Masthead - Change the Hyperlink

Daniel,

Thank you for help!

I added the php file, but I had a couple of issues with it. I had two mastheads, and text visible around the mastheads.

I then read your reply and instructions to the post by jackm "Home Page Theater "Enter" Button Question. Which I thought would work even better for me.   yikes)

I added the css and php file you suggested. The "enter" button appeared and works perfectly. The masthead looks good also, but the following text is visible above it:

function ttg_masthead_bottom ( $style, $path ) { echo '
ENTER
'; } // end ttg_masthead_bottom

Is there a change I can make in the php to hide or repair the text?

The link is www.justwalkingaround.com

Thank you again, for your help on this!

Bob

Offline

#6 2016-09-01 23:44:25

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Masthead - Change the Hyperlink

You made the same mistake as Jack. Please see http://community.theturninggate.net/vie … 832#p40832


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#7 2016-09-02 03:30:54

Bob L
Member
Registered: 2012-11-23
Posts: 62
Website

Re: Masthead - Change the Hyperlink

Daniel,

Yep, same mistake, and thanks to your help, everything works great now!

I made the mistake of deleting the sample php text, and adding your suggested text. After you pointed out my mistake, it was an easy fix.


I'm still trying to understand and learn css/php, but I'll get there hopefully.     smile

Thanks so much,
Bob

Offline

#8 2016-09-02 04:36:58

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Masthead - Change the Hyperlink

smile


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

Board footer

Powered by FluxBB