• Resolved FrankBukowski

    (@frankbukowski)


    Hi
    I’m trying to put an Amazon Associates widget in my sidebar or footer area to showcase my books in a carousel or slide. But when I paste the Amazon code in using a text box, the widget always appears right at the bottom of my web pages, under the footer area. I thought it might be the width of the widget was too wide, but I’ve experimented with different sizes right down to the narrowest (120 pixels wide) which should have fitted in easily. Made no difference, it always appears below my footer area. Any ideas anyone?
    Thanks
    Frank

Viewing 15 replies - 1 through 15 (of 16 total)
  • Need a link please.

    But try disabling the feature at:
    Customize>Responsiveness>Enable/disable blocks reordering on small devices though I’m not sure this is relevant in your case.

    Thread Starter FrankBukowski

    (@frankbukowski)

    Hi

    Here’s the link:
    https://www.frankbukowski.com/
    Interestingly if I type a title in the text box of the widget, the title shows up in the RH sidebar, but the widget itself never does (always appears at bottom of page). I’ve left the dummy title in so you can see it.

    I tried ticking the Enable/disable blocks reordering… setting you mentioned, but it didn’t make no difference.

    Hope there’s a solution. Thanks for the help so far.

    That’s a strange one. I think the positioning is being driven by Javascript as there is no CSS targetted.

    I’ve flagged to Nic to take a look.

    Thread Starter FrankBukowski

    (@frankbukowski)

    Thanks rdell, appreciate it.

    Can you paste what you were posting in the text widget here (in backticks)?

    Thread Starter FrankBukowski

    (@frankbukowski)

    Hi ElectricFeet

    This is the code I paste in the text widget for the RH sidebar, as generated on the Amazon Associates ‘widgets’ page.

    <SCRIPT charset=”utf-8″ type=”text/javascript” src=”https://ws-eu.amazon-adsystem.com/widgets/q?rt=tf_ssw&ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Ffrankbukowski-21%2F8003%2F3392cfe4-8676-4f02-911d-ec80c552e8e3&Operation=GetScriptTemplate”&gt; </SCRIPT> <NOSCRIPT>Amazon.co.uk Widgets</NOSCRIPT>

    Ah, it’s a script. So as I understand it, it will not work properly in a text widget. Maybe this plugin could help: https://www.ads-software.com/plugins/html-javascript-adder/

    Thread Starter FrankBukowski

    (@frankbukowski)

    Sorry ElectricFeet, dumb of me, not aware of the nuances of Scripts and non scripts.

    I installed the plugin and put it at the top of my right hand sidebar, posted the script in, put a header ‘Check out my Books’, and exactly the same thing’s happened, the header has appeared but the widget hasn’t, it’s gone to the bottom of the page. No idea why.

    Thread Starter FrankBukowski

    (@frankbukowski)

    I tried that javascript adder plugin you mentioned ElectricFeet, but it didn’t work. I’m still stuck on this one, I’m afraid. If anyone has any other ideas I’d love to hear them. Thanks.

    From what I can see, it looks like the text widget should work. Can you add it back in and I’ll take a look to see if I can figure it out?

    Thread Starter FrankBukowski

    (@frankbukowski)

    Thanks ElectricFeet

    I’ve put the text widget back in at the top of the RH sidebar, with the script pasted in it, and a headline that reads ‘Frank’s books are available on Amazon’.

    As you can see, the headline appears fine, but the widget itself is still right at the bottom left of the page. I can’t figure out what’s making it do that.

    Thanks for your help.

    Just realised that we haven’t had you try deactivating all plugins and reactivating them one by one to see if one of them is causing it. Also try switching off the Customizr lightbox effect to see if that is interfering. Your cache could be screwing things up by loading it late, as well.

    Failing that, can you ask Amazon? They must be used to people using their code on WordPress.

    Thread Starter FrankBukowski

    (@frankbukowski)

    Hey ElectricFeet, spot on. My plugins weren’t giving me trouble with anything else so I assumed they were okay. But I went through deactivating them one at a time as you mentioned, and Autoptimize is causing the problem. When I deactivate it, the Amazon widget appears in my sidebar, but when I reactivate Autopimize again, it disappears. It seems we’ve solved the mystery. I will drop the plugin author a note and ask if he can fix it. Thanks again for all your help. Much obliged.

    It’s not a fault of the plugin as such. It’s simply doing what it says it does: moves scripts to the footer. In your case, that’s too late in the page, so it gets tacked on the bottom.

    Thread Starter FrankBukowski

    (@frankbukowski)

    Oh I see, that was lost on me, not being a developer, thanks for clarifying EF. I will ask the plugin author if anything can be done about it. But if it’s just doing its job as you say, it may not be possible to tweak it, so I may have to find an alternative, if I want to run the Amazon widget. Thanks for letting me know EF.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Can't get Amazon Affiliates image to stick in RH sidebar’ is closed to new replies.