ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Tip for CSS button

June 11, 2012 4:46pm

Subscribe [1]
  • #1 / Jun 11, 2012 4:46pm

    vw000

    482 posts

    Hi, can a webmaster or designer help out on this please.

    I want to add some CSS buttons across pages but instead of having to add the class code to each page it would be nice if I could save it in a variable or snippet.

    Like

    {button}

    So then I just add the variable to any html page that needs this.

    Now the problem would be that the link would this way be hardcoded into the variable which would not work but I had some idea.

    Is is possible to create a link to a next segment url?

    If yes, then I could add this variable to the button and it would always work since my button is a “More” button which basically just goes one step deeper into the structure.

    Not sure if this stupid, maybe it is and I should just stick with adding the class on each HTML page. I just want to keep the design clean.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases