Hi there,
i’m trying to this
<div
{if segment_1 == "services"}
id="content-services"
{/if}
>Which works fine.
But inside the template group ‘services’ i have another template called ‘solutions’
so the url segment is
websitename.com/index.php/services/solutions/
so for this second url segment, i want to target it through this code:
<div
{if segment_2 == "solutions"}
id="content-solutions"
{/if}but instead, now because i’m targeting both segments, the second one returns the following
<div id="content-services" id="content-solutions">Basically both ID’s because i’m targeting both.
But for segment 2 i only want to target it for the segment_2 and leave segment_1 out of it.
I understand why it’s happening, but i can’t think of a way to stop it from happening.
Any ideas?
Thanks in advance.