WordPress.org

Ready to get started?Download WordPress

Forums

button function the easy way (3 posts)

  1. brad8985
    Member
    Posted 3 years ago #

    Hi,

    I want to use the following function in my TinyMCE editor... is this possible?

    <?php function buttonlink($url, $text){ ?>
    <a class="button" href='<?php echo $url; ?>'>
                        <?php echo $text; ?>
                        <div class="TL"></div>
                        <div class="TR"></div>
                        <div class="BL"></div>
                        <div class="BR"></div>
                    </a>
    <?php }

    The function works fine but I want to be able to enter a link and click a button or something so that it generates my button for the user without having to touch code.

  2. brad8985
    Member
    Posted 3 years ago #


  3. brad8985
    Member
    Posted 3 years ago #

    Bump... anybody?

  4. brad8985
    Member
    Posted 3 years ago #

    There must be some wordperess ninja waiting to give me the answer...

Topic Closed

This topic has been closed to new replies.

About this Topic