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)
-   -   [SOLVED] Link problem in text widget (http://forum.bytesforall.com/showthread.php?t=1630)

gina31 May 12, 2009 07:39 AM

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

Flynn May 12, 2009 07:51 AM

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>

gina31 May 12, 2009 08:02 AM

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>

gina31 May 12, 2009 08:06 AM

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!!!!:)

irina2 Jan 23, 2013 12:15 PM

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!!

irina2 Jan 23, 2013 12:22 PM

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!

lmilesw Jan 23, 2013 12:43 PM

Remove the space from after the link URL and add a space before the slash in the image URL.

irina2 Jan 23, 2013 01:10 PM

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!

lmilesw Jan 23, 2013 01:16 PM

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.

irina2 Jan 23, 2013 01:27 PM

That did the trick! Thank you so much!


All times are GMT -6. The time now is 04:15 AM.

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