[SOLVED] Link problem in text widget
I am doing a website for a client. She wants to have pictures in the left sidebar to link to various pages internally. I am using the text widget. The problem that I am having is that all of the links are going to the blog page. I am also using widget logic.
|
What are you putting into the widgets? It would have to be static HTML links such as
HTML Code:
<a href="http://mysite.com/path/to/page/"><img src="/path/to/image.gif" alt="..." /></a> |
This is the code that I am using <a href="http://crememagnolia.net/?page=120">
<img src="http://www.crememagnolia.net/wp-content/uploads/home.jpg" alt="Mag Artists"> </a> |
Flynn i figured it out!! Thank you so much. I looked at your code and found that I forgot to put it _id with the page code!!
You are awesome. This kept me up all night. Thank you for replying!!!!:) |
I'm attempting to do this now and I seem to be getting the same issue. I link out using the permalink but when I click the button to the page it sends me to a page that doesn't exist (i.e. an error).
Here is the code I use in the widget: <a href="http://www.chocolateatime.com/running/ "><img src="http://www.chocolateatime.com/wp-content/uploads/2013/01/Running-button-resized.jpg"/></a> What is the "_id" solution that I seem to be missing? Any suggestions are much appreciated!! |
I should also add that I basically copy and paste the link for the page into the widget area. However, when I actually click on the widget button to take me to the appropriate page I am taken to a different hyperlink
original link of the page: http://www.chocolateatime.com/running/ page I am taken to when button is clicked: http://www.chocolateatime.com/running/%20%E2%80%8E Why is this happening? Thanks! |
Remove the space from after the link URL and add a space before the slash in the image URL.
|
Hmm I think I did what you suggested by the problem still persists.
Here is the current code: <a href="http://www.chocolateatime.com/running/"><img src="http://www.chocolateatime.com/wp-content/uploads/2013/01/Running-button-resized.jpg" /></a> Am I missing or misunderstanding something? Sorry if this is a basic question, I'm still very new! Thanks! |
That should work. Your first code gave me the same error as you had. This code does not. Make sure you clear your browser cache or if you have a caching plugin be sure and clear that cache as well.
|
That did the trick! Thank you so much!
|
All times are GMT -6. The time now is 08:28 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.