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.

Linking a button

May 11, 2010 1:52am

Subscribe [2]
  • #1 / May 11, 2010 1:52am

    3six3

    28 posts

    I’m trying to make a button into a link
    before I add the tag the file looks like this, and the button links to yahoo.com

    {exp:weblog:entries}  
                   < a class="btn-more" href="http://www.yahoo.com">Read More</a>
    {/exp:weblog:entries}

    my thought was to change the url to a custom field.

    {exp:weblog:entries}  
                   < a class="btn-more" href="http://{tagname}">Read More</a>
    {/exp:weblog:entries}

    But that is not working… What am I doing wrong?

    Thanks

  • #2 / May 11, 2010 2:49am

    Wouter Vervloet

    758 posts

    What does the link look like in your HTML?

  • #3 / May 11, 2010 3:08am

    3six3

    28 posts

    Hey I seemed to figure it out…
    I separated the class from the href and now its working

    This is what it look like before i enter the tag

    <a href="http://{rside_but}class=btn-more">Read More</a>
    <div class="btn-more">
    < a href="http://{rside_but}">Read More</a>
    </div>
  • #4 / May 11, 2010 3:32am

    Wouter Vervloet

    758 posts

    that’s just weird… are you using the wrong type of quotes or something?

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

ExpressionEngine News!

#eecms, #events, #releases