WordPress.org

Support

Support » How-To and Troubleshooting » button function the easy way

button function the easy way

  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘button function the easy way’ is closed to new replies.