6 replies
Hi all

I hope you don't mind me picking your collective brains... I have a hosted Wordpress blog using the Revolution Lifestyle theme and would like to add a link to a product to one of the side bars- clickable products image and text. I have managed to add the text linking to the product salespage but the image isn't displaying, even though I have added the address of the folder where the image is. I'm sure it must just be something really simple I'm not doing.

The other problem is, on some of the blog post summaries on the home page, instead of the usual 'read more of this review', inviting the reader to click to open the post on a new page, there is a string of words and characters which shouldn't be there- eg 'Bookmark It Hide Sites $$('div.d153').each( function(e)', which makes the site look messy.

Any ideas? Thanks a lot everybody
#issues #wordpress
  • Profile picture of the author Ebo Etoyep
    PM me the URL and I'll have a gander.
    {{ DiscussionBoard.errors[1398270].message }}
  • Profile picture of the author Ebo Etoyep
    Apparently, I can't send PM's yet, so I'll explain here.

    To fix the sidebar, replace the current code you have with:
    Code:
    <a href="http://www.YOURURL.com/exercisewithouteffort.htm">
    <img src="images/ecover2-150.jpg">If you like the idea of losing a few pounds, stopping aging dead in it's tracks, having a sexier silhouette, but can't fit gym or workout sessions in your schedule, please click here</a>
    You'll obviously want to replace YOURURL with your real URL. There were 2 separate issues with the <img> tag.

    Originally you were using:
    Code:
    <img src="/images/ecover2-150.jpeg">
    The slash at the beginning of the link basically says, "You'll find this at this exact spot in the TOTAL filesystem." By removing it, it makes the image's URL relative to the path of the folder it is in.

    The second issue is that images/ecover2-150.jpeg doesn't exist, but images/ecover2-150.jpg does. The extra e in jpeg was the issue. Some host environments will correct for this, but many don't. I used to do this all of the time, too. Very hard to catch when you've been looking at the code forever.

    Also, it is entirely up to you, but may not want to link all of that text AND the image. It looks sort of weird to me. You could try something along these lines:

    Code:
    <a href="http://www.YOURURL.com/exercisewithouteffort.htm">
    <img src="images/ecover2-150.jpg"></a><br />If you like the idea of losing a few pounds, stopping aging dead in it's tracks, having a sexier silhouette, but can't fit gym or workout sessions in your schedule, <a href="http://www.YOURURL.com/exercisewithouteffort.htm">please click here</a>.
    This way, both the call for action and the image are clickable links.

    With regard to the weird code showing up before the review link, that is jQuery Javascript code and it normally is parsed by the browser and never shown. Do you perchance have another "Click Here For More" tag in your posts or maybe a plugin that does this automatically? If so, that is probably the culprit. I can't tell from here, but it looks like the jQuery code was made to "slide down" content when the user clicks the more link. If you've installed a plugin that does that, try deactivating it from the control panel.

    Let me know how that works for you!
    {{ DiscussionBoard.errors[1398437].message }}
  • Profile picture of the author Ebo Etoyep
    Upon second look, the culprit may be the Social Bookmarks plugin, but I don't know why it is behaving the way it is.
    {{ DiscussionBoard.errors[1398445].message }}
    • Profile picture of the author luckystepho
      Hi Ebo
      That's really useful, I will try it again! I do have a plug in that automatically shortens posts so may try deactivating it and see what happens.
      Thanks a lot for your time
      {{ DiscussionBoard.errors[1398566].message }}
      • Profile picture of the author luckystepho
        Hi just to add- it is perfect now! I have the image and text in sidebar.

        I think the plug in was causing the weird text as I have deactivated and all seems normal. Thanks a bunch Ebo, you have been really helpful.
        {{ DiscussionBoard.errors[1398620].message }}
        • Profile picture of the author Ebo Etoyep
          Originally Posted by luckystepho View Post

          Hi just to add- it is perfect now! I have the image and text in sidebar.

          I think the plug in was causing the weird text as I have deactivated and all seems normal. Thanks a bunch Ebo, you have been really helpful.
          No problem at all, Steph. I'm glad I could help!
          {{ DiscussionBoard.errors[1398646].message }}

Trending Topics