Forums » Customize

Make a section title a link?

Beninternational
UK
2010-07-30 05:41:12
Permalink Post
 

Hi,

I've done lots of searching around the forum but can't find any help with what I want to do. Probably because there is a better, cleaner way to achieve it, so any advice will be greatly appreciated. I'm a newbie though, so please speak in layman's terms!

I'm helping my wife build her site here:
http://www.studio-legohead.com/indexhibitv070e/

You'll see that the section titles 'commision me', 'shop' and 'blog' are links. I cheated this by adding a style in the css called and applied this to the exhibit name and then hid the section title.

It does what I want it to, but it makes the text '' visible as the page title in the browser. Click on one to see what I mean.

So I'm looking for either a cleaner way to make a different link style (to match the section header style), or a way of keeping it as it is, but overriding the page title so it does not include the tag.

Many thanks,
Ben

Vaska A
UNITED STATES
2010-07-30 09:31:25
Permalink Post
 

Html is not supposed to go with the page title...this is the first problem.

Just write a short plugin that take out any tags from the title in the template.

Beninternational
UK
2010-07-30 18:10:18
Permalink Post
 

Thanks for the pointer, but as I said, I'm a newbie! I have no idea how to write a plugin!

Can you recommend a better way to achieve what I am trying? It sems like something that other users may have wanted to do previously.

Many thanks,
Ben

Vaska A
UNITED STATES
2010-07-30 19:41:58
Permalink Post
 

Off the top of my head...here is the code for your plugin...

  1. function cleantitle($title='')
  2. {
  3. return strip_tags($title);
  4. }

I've done the hard part, now you can figure out how to implement it.

;)

pkemp
UK
2010-07-30 20:15:16
Permalink Post
 

Hi

How did you do it in the end then?

Beninternational
UK
2010-08-01 16:52:56
Permalink Post
 

Thanks Vaska!

I'll give it my best shot... in the spirit of self-improvement!

maguskrool
PORTUGAL
2010-11-25 09:19:24
Permalink Post
 

Hi. I think this thread might help me but I\'m stumped, because my knowledge of PHP is quite limited. I believe I should insert the function you created between script tags in the index.php of the style I\'m using (in my case, I modified Sample). But then I don\'t know exactly how to call the function. Any help, even if it\'s not a complete solution? Thanks.

Showing 1 - 7 of 7 posts in Forum > Customize > Make a section title a link?
 

You need to be logged in to post.