Jump to content

Catagory like lenged, but need to add buttons


Guest toosweets

Recommended Posts

What do you mean by buttons, do you want to make them buttons like the buy and more buttons, or do you want to acctualy make them images... << the latter using the GD lib to create them dynamicaly...

Link to comment
Share on other sites

That could either be done as a GD image... a nice option, PM for more details on that, or you could create is as a Div button with a background... an example would be a purple varient of the buttons you see on my test site > http://test.cezz.co.uk/MODx-0.9.0/store/index.php

If you are going to be selling or distributing the skin the latter is the best option...

Again PM me for more details...

Link to comment
Share on other sites

Ok as a Css tip for you all, this is how to do it...

first create two gradient images...

examples would be

gradient1.pnggradient1.pnggradient1.pnggradient1.pnggradient1.png

And

gradient2.pnggradient2.pnggradient2.pnggradient2.pnggradient2.png

I appolagise for their size i tried to multiply them so you could all see but it was going crazy...

anyway once you have your images... place them in your skin styleImages folder in the skin directory...

Ok now all you need to do is open style.css

Find

li.bullet {

list-style-type: square;

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 75%;

color: #000000;	

}

Replace With

    li.bullet a{

    text-decoration:none;

    display:block;

  width:118px;

  margin:3px 10px 2px -8px;

  padding:5px 0 5px 0px;

  font-size:1.1em;

  font-weight:bold;

  text-align:center;

  background:#eee url(../img/gradient1.png) repeat-x;

  color:#26c;

  border-top:1px solid #ddd;

  border-right:1px solid #bbb;

  border-bottom:1px solid #bbb;

  border-left:1px solid #ddd;

}

li.bullet a:hover {

    display:block;

  width:118px;

  margin:3px 10px 2px -8px;

  padding:5px 0 5px 0px;

  font-size:1.1em;

  font-weight:bold;

  text-align:center;

  background:#eee url(../img/gradient2.png) repeat-x;

  color:#26c;

  border-top:1px solid #bbb;

  border-right:1px solid #ddd;

  border-bottom:1px solid #ddd;

  border-left:1px solid #bbb;

}

Change the image paths In Red and the colors that are Bold to match your site, and now your Catagories now display as mouse over images... :D... or atleast they look like that...

Message here if you need aditional advice on this...

EDIT: you will also want to change the width and margins to suit your needs.

Edited by aikdo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...