PDA

View Full Version : Change the news title to heading 3


Dimas
02-03-2009, 04:06 AM
How I can change the news module title for heading 3, there a lot of threads to change the fount, but not to change the heading, anyone can help?
Cheers,
Dimas

Brian
02-03-2009, 11:28 AM
Do you mean using <h3> tags, or?

Our Sponsors
 

Dimas
02-04-2009, 02:42 AM
yes, h1, h2 etc

Brian
02-04-2009, 10:10 AM
You would need to use an <if condition> tag in your adv_portal_module_wrapper template that looks something like this:

<span class="smallfont"><strong>$vba_style[portal_blockbullet]
<if condition="$mods['identifier'] == 'news'">
<h3><a href="$mods[link]">$mods[title]</a></h3>
<else />
<if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></if>
</strong></span>

Our Sponsors
 

Dimas
02-04-2009, 12:12 PM
Thank you very much, but there some twice </a> in the code
continued</a></a></h3> </strong></span><

Dimas
02-04-2009, 12:15 PM
I've make the change <h3><a href="$mods[link]">$mods[title]</h3>
Is it right?

Xiepoo
02-05-2009, 11:35 AM
If that doesn't work why not make a link class? More versatile in my opinion.

Dimas
02-05-2009, 12:06 PM
No with that code works nice I've make the change <h3><a href="$mods[link]">$mods[title]</h3>

Brian
02-05-2009, 12:45 PM
I was forgetting that the link is automatically added for the news module. Use this in your condition instead and it should take care of the additional link tags.

<h3>$mods[title]</h3>