[SOLVED] Replace bullets with arrow image

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
PolarWolf
New Member
New Member
Posts: 3
Joined: Mon Mar 01, 2010 5:41 pm

[SOLVED] Replace bullets with arrow image

Post by PolarWolf »

Hello,

I am using ellnav-vert.tpl that is floating around here, the problem is that I want to use an image of a right arrow instead of the default bullets, with the code below it displays both:

Code: Select all

{* CSS classes used in this template:
.current - The current page in the vertical (local) menu. 
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *} 

{if $count > 0}
<ul class="menu_horiz">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
  
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->current == true}
<li class="current"><a class="current" href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
<li><span class="bullet_sectionheader">{$node->menutext}</span>
{elseif $node->type == 'separator'}
<hr class="separator" />
{else}
<li style="list-style-image: url('uploads/images/arrow.png') ">
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>{/if}
{/foreach}

{repeat string="</li></ul>" times=$node->depth-2}</li>
</ul>
{/if}
Any help will be much appreciated.

Regards,
Wolf
Last edited by PolarWolf on Tue Mar 02, 2010 5:06 pm, edited 1 time in total.
uniqu3

Re: Replace bullets with arrow image

Post by uniqu3 »

I think your problem should be fixed by adding in your css
.menu_horiz ul {liste-style:none;}
I am not sure if menu_horiz ul is the right place or even exists in your css but bullet is default for list-style somthing so with setting it to none bullet should no longer be visible.
User avatar
RJK
Forum Members
Forum Members
Posts: 59
Joined: Mon Nov 16, 2009 8:58 pm
Location: France

Re: Replace bullets with arrow image

Post by RJK »

First off you need to get hold of an image of an arrow that you're happy using. You can easily substitute the standard bullets etc... which are part of CSS by entering something like the following in your CSS file:

ul#menu_horiz {
list-style-image:url(images/arrow.gif) }

Obviously change arrow.gif to whatever your image is actually called.
PolarWolf
New Member
New Member
Posts: 3
Joined: Mon Mar 01, 2010 5:41 pm

SOLVED Replace bullets with arrow image

Post by PolarWolf »

Thank you, that did the trick!

Regards,
Post Reply

Return to “Layout and Design (CSS & HTML)”