1
kalamata
HTML Code in Block Title?
  • 2007/7/21 22:30

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

Is it possible to have HTML code in the title of blocks? So, if you want to write a date properly (e.g. 7th July) or if you want your title to blink, is there a way to achieve this?

Thanks,
George

2
kalamata
Re: HTML Code in Block Title?
  • 2007/7/25 11:00

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


up. Please give me some pointers as to how I can implement this.

Thanks,
George

3
Peekay
Re: HTML Code in Block Title?
  • 2007/7/25 12:16

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Maybe one of the theme designers can help you better with this.

I know the template uses <{$block.title}> smarty VAR to generate the title. You can format this with CSS using .blockTitle class.
A thread is for life. Not just for Christmas.

4
christian
Re: HTML Code in Block Title?
  • 2007/7/25 12:50

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


in your theme.html file you can write :

......
<{if 
$block.title=="title personnalised block"}>

     <
h1><{$block.title}>h1>
     or
     <
h1 class="blockTitle"><{$block.title}>h1>
<{else}>
     <{
$block.title}>
<{/if}>
........

5
kalamata
Re: HTML Code in Block Title?
  • 2007/7/25 21:51

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


True, but this does not help much if you only want to format specific bits of the title, does it? If you want a title like Welcome to our big party and you want the word party in bold but only that, you will not be able to achieve it with your solution.

George

Login

Who's Online

349 user(s) are online (278 user(s) are browsing Support Forums)


Members: 0


Guests: 349


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits