1
benjy000
xHelp - Adding Simple Bullets
  • 2007/12/20 5:52

  • benjy000

  • Just popping in

  • Posts: 16

  • Since: 2007/8/25


Hello,

I'm sure this is incredibly easy to do, but for some reason I've had no luck at all.

If you go to my website, www.gtiagents.com, you'll notice that for each block on the left-hand side, the different pages have arrows as bullets. For example, look under "Solutions" and "Home", "About Us", etc. all have arrows before the text instead of plain old circle bullets.

When I try to add the xHelp block, it will only let me have these weird circle bullets or to have nothing at all. I want the simple arrows to make my website consistent.

I believe I've nailed down the file for the xHelp block, so I'm assuming I'd just need to edit this file in order to display the arrows instead of the circle bullets. I have absolutely no idea where to begin to edit the file. The file is below, and I would REALLY appreciate it if someone could reply with the simple code that would allow me to have the arrows instead of circle bullets.

Thanks in advance!

xHelp File:

<{$block.startblock}>
<{foreach name=items from=$block.items item=menuitem}>
<{$block.startitem}><a <{if $smarty.foreach.items.first && $block.menustyle neq 0}>class="menuTop"<{/if}> href="<{$block.linkPath}><{$menuitem.link}>">
<{if $block.showicon}><img src="<{$block.imagePath}><{$menuitem.image}>" alt="<{$menuitem.text}>" /><{/if}><{$menuitem.text}>
</a><{$block.enditem}>
<{/foreach}>
<{$block.endblock}>
<{if $block.savedSearches neq false}>
<div align="center">
<form name="savedSearches" method="post" action="<{$block.linkPath}>search.php">
<select name="savedSearch">
<{foreach from=$block.savedSearches item=search}>
<option value="<{$search.id}>"><{$search.name}></option>
<{/foreach}>
</select>
<input type="submit" name="runSavedSearch" id="runSavedSearch" value="<{$smarty.const._XHELP_BUTTON_RUN}>" />
</form>
</div>
<{/if}>
<{if $block.whoami eq "staff"}>
<form method="post" action="<{$block.linkPath}>ticket.php">
<input type="text" name="id" size="6" />
<input type="submit" name="getTicket" value="<{$smarty.const._GO}>" />
</form>
<{/if}>

2
stefan88
Re: xHelp - Adding Simple Bullets
  • 2007/12/20 13:20

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

Test this: put your code in a "div" tag like this:


<div class="myclass">
...
Your code here.
...
</
div>


and add this to your theme style.css file:

.myclass a {
    
displayblock;
    
margin0;
    
padding2px;
    
font-weightbold;
    
color#FFFFFF;
    
text-decorationnone;
    
background-imageurl(img/arrow.gif);
    
background-positionleft center;
    
background-repeatno-repeat;
}


where myclass is something meaningful for you. This should add arrow to all links like in your main menu.
..

Login

Who's Online

136 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 136


more...

Donat-O-Meter

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

Latest GitHub Commits