Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Including code under a button for readers to snag (http://forum.bytesforall.com/showthread.php?t=1023)

pltrace Mar 30, 2009 06:08 PM

Including code under a button for readers to snag
 
I made a button for my blog and want to include code underneath so that people can use it. I like this format:

http://i167.photobucket.com/albums/u...ensen/snip.jpg

Where can I get code to create this? Thanks!!

Flynn Mar 30, 2009 07:47 PM

Not sure if this is overkill for s single piece of code but I use the plugin WP-Syntax to post code in WP but that would be for code in posts and looks like you're putting it into a sidebar.

In that case try

HTML Code:

<pre class="mycode"> YOUR CODE </pre>
i.e. in a text widget

and add a HTML/CSS Inserts -> CSS Insert

HTML Code:

pre.mycode {
width: 200px;
height: 150px;
overflow: scroll;
}



All times are GMT -6. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.