textbox inside a textwidget
-
Hi, I have a questión, I’m trying to make a Button to link to my blog but when I put the code into a text widget it goes off the theme, check it here http://shito.wordpress.com, the name of the widget is “¿Me Quieres Afiliar?”. The code I have is
What I want is to make the code not to go off the theme but to stay between the margins of the Text-widget, thanks for the help
-
mmm.. seems I did not make it here ..
<textbox>
<img src="http://shito.files.wordpress.com/2008/09/shito-btn.gif" title="Shito.WP.com" width="88" height="31" /></textbox> -
one last try.. if not, i’ll wait for your help
<textarea><img src=”http://shito.files.wordpress.com/2008/09/shito-btn.gif” title=”Shito.WP.com” width=”88″ height=”31″ /></textarea>
-
OK, I have a feeling it might be the width and height that’s causing your trouble. Whenever I’m working with stuff like this, I try one thing at a time and then change it.In any event, I checked the gif and it seems to be OK so try this:
<a href="http://shito.wordpress.com" target="_blank"><img src="http://shito.files.wordpress.com/2008/09/shito-btn.gif" alt="" /></a> -
no, didn’t work.. i’m not sure if i make myself clear about what i want, well, what i really want is to show the code as you show it to me in your answer “vivianpaige”, that textarea where you show me the code to put.. is it possible to put something like that in a textwidget??
-
You want to show the code itself? Take a look at this FAQ http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/ I don’t know if it works in a text widget, though.
-
No, any HTML put into a text widget is interpreted and the “[sourcecode]” stuff will not work in a text widget.
You can show sourcecode in a post or page, but not in a widget.
-
mmm thank you guys :)
@thesacredpath: i managed to put some code putting it in ascii code, but it looks quite awful, but thanks a lot :)
-
hi again.. the codes shown in the page you told me about work perfect in a text-widget, you can see it on http://shito.wordpress.com, look for the badges :)
-
We had a misunderstanding then. The sourcecode shortcode is for showing the actual code.
These FAQ’s are appropriate for putting images and badges in widgets:
http://faq.wordpress.com/2006/10/18/put-an-image-in-your-sidebar/
-
-
That’s exactly what I wanted, i want to show the code so anyone else is able to copy it.. thanks a lot guys :)
-
Unless I’m blind, I don’t see any source code in any widget on the blog you listed. I see badges, but they do not have any source code showing with them.
-
TSP – you aren’t blind. It was on this site a while ago http://shito.wordpress.com/ but it seems to be gone now.
-
your not blind, it was, i just took it away.. but it is on the site again so you can see it..
-
Interesting. I was under the impression from something I had read that you could not use the sourcecode shortcode in widgets.
Learn something new everyday. Thanks for reposting it so I could see it.
-
-
-
-
Nice I tried the source code in a text widget & it broke the width of the
theme but i’m going to mess around with the code again & see if I get to
work like you did.
- The topic ‘textbox inside a textwidget’ is closed to new replies.