• Resolved JanSnowski

    (@jansnowski)


    Hi Kevin, Great plugin it is exactly what I have been looking for. The site is “under construction” whilst I try out your plugin. I have done some texts with a picture but in the layout it shows the image centered but going live the pic will only align left no matter what I do. Is there something I am missing? Thanks Janek

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter JanSnowski

    (@jansnowski)

    I have found a work around thanks.

    Plugin Author kevin heath

    (@ypraise)

    Hi Jan,

    Thanks for the question and good to see you’ve found a work around.

    If you are using a free theme with the issue, could you let me know what the theme is.

    I’ll test it and do a fix for the next update. I’ve not had this problem before and it is probably something to do with the theme’s default img css.

    Thanks
    Kevin

    Thread Starter JanSnowski

    (@jansnowski)

    Hi Kevin, Thanks for the reply.
    Not a free theme but a Premium one “Pinnacle” from Kadence themes but they do have regular on the WordPress repository, here: https://www.kadencewp.com/product/pinnacle-premium-wordpress-theme/
    When I hit the “Add Media” button above the description window this is the code that gets inserted:

    To overcome the pic not aligning center I did this:

    Works fine as I have tested it out a few times before posting here.

    Any thoughts on why these get deleted in the edit box after inserting under the “Text” tab? This code works and displays just fine in any normal post.:

    <script type=”text/javascript”>
    10 lines of Amazon script go in here…
    </script>
    <script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US”></script>

    That top and bottom script gets deleted when I save but the rest of the code stays so the ad does not display. Any ideas would really help thanks,
    Regards,
    Janek

    Plugin Author kevin heath

    (@ypraise)

    Hi Janek.

    sorry your code seems to have been deleted and not displayed so I’m not sure what you did.

    As for your javascript issue, it’s part of WordPress core hardening to prevent hacks and code injection in the description areas. By default you should only be able to run simple html in the tax description area.

    My plugin adds an editor and also overrules some of the security so you can run shortcodes but I decided not to overrule the clean script injection for security.

    Most people will be using ad plugins to run javascript-powered affiliate and ad links so shortcodes from those will work or if they auto insert that will work. But putting the script directly in will have the script marker stripped.

    It’s easy enough to run those script through a plugin – try shortcoder – add your javascript and then use the shortcode in the description to display the javascript.

    It’s safer than being able to run script directly in the area.

    Thanks
    Kevin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images only displayed on left’ is closed to new replies.