Link format in text widget
-
For some reason, when I add a link into a text widget, a break automatically goes into the format. The link and link name both work fine though.
Just to show what I mean as an example, the end result looks like this:
I am putting in a
<link here>
but it doesn’t look so good.
INSTEAD, I would want:
I am putting in a <link> here and now it looks good.
It doesn’t do this for posts and works fine there, but it’s an issue exclusive to the text widget it seems. Anybody else having this problem or know how to solve it? Thanks. :)
-
Can you post here the exact code you are putting into the text box? This will help us find the exact problem rather than throw out guesses. Put this code between backticks which are probably located next to your 1 key on the keyboard.
like this -
As a sidenote you should take out the www in front of your link to your blog on your user profile. The one that links your username to your blog. It is not needed.
-
um..hehe…it does work here in a sentence..just not the widget..and I should fix it so you can properly see what I’m writing:[Link removed since it broke the rest of the thread – drmike]
I put the extra /// in so you can see the actual html..thanks again
-
oops..what a disaster..hehe..it still partially works. I’m not sure how to show exactly what I input in for html without it converting when I send post. :I
-
Don’t do it that way. Post the code between backticks, which are those little slashes on the same key as the ~. So you post it like this, subbing the backticks for the ~s:
~ all your code goes here ~
-
-
But like I said, it works seamlessly in the text area for blog posts. It’s only in the text widget that icky things seem to happen and it breaks up the text around it.
-
For extra reference, it’s the text widget at the bottom right hand side of my site where I refer to my ‘about’ page. I’m trying to link that word. Thanks for everyone’s help. I really appreciate it. :)
-
As always, if you have questions, then fill out the contact form on my ‘about’ page and I’ll do my best to answer them.
<a href="http://weirdscience.ca/about">ABOUT</a>The code looks right to create a link. It’s just html in the widget the same as in a post or page.
-
If all else fails, you can create the whole thing in the Write Post page (save as a draft). Once it’s all the way you like it, formatted and everything, click on the Code tab. Copy all the code you see there, then go and paste it into a text widget. Save changes and check that it’s the way you like it. Then you can delete the post you were using to fiddle this.
-
Yeah, it’s so odd how the format changes despite using the identical html code as I would in a post. I’m going to try raincoaster’s suggestion of transferring it from a post to a widget. Thanks abunch. :)
-
Suggestion tried. As before, it looks great in the post but as soon as it goes into the widget, breaks are mysteriously inserted on either end. I’m going to just have to leave it and assume it’s something related to the theme. :)
-
Jaroche,
No, no comment. I was using Safari when I first read this thread and because of weirdscience’s comment, which has an opening anchor tag, all post down are being affected by the CSS link class. So, I was leaving a comment on the matter but change my mind and just deleted it.
weirdscience,
Yes, it’s a theme thing. It sucks because it shouldn’t do that. I tried to come up with a solution, to no avail.
-
What about inserting something like:
<p>bla bla bla <a href="http://weirdscience.ca/about">ABOUT</a></p>
- The topic ‘Link format in text widget’ is closed to new replies.