• Resolved vickigarside

    (@vickigarside)


    Hi

    The plugin seems to have stopped working.

    I have 5 images on the page which each drop down to a table if the image is clicked. I used to have the problem that the first line of code would become visible randomly after publishing, but now all I see is the code, it no long displays the image and the content is not ‘collapsed’ when you view the page.

    Please can someone take a look?
    The page is https://maketimetoseetheworld.com/resources/

    Thank you

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Very easy fix. Pay close attention to how quotes and double quotes are being used inside your title attribute. Since an image is being used you will want to change your shortcode values from using double quotes to single quotes.

    Bad:
    [expand title="<img src="..."/>"]...[/expand]

    Good:
    [expand title='<img src="..."/>']...[/expand]

    Does that make sense?
    Also, please check your page in HTML (TEXT) mode rather than Visual mode of the page editor. This way you can see exactly how the quotes are being used on your shortcodes. Do let us know if this resolves the issue, or if you still require assistance.

    Thread Starter vickigarside

    (@vickigarside)

    Hi

    Thank you for your reply. I have changed the double to single but I am still not getting the desired result. (And I am editing in text not visual) – I have left the page with the following code set up:

    (the first drop down banner image on the page – Websites)
    The single quotation marks around the image now show the image again but also the first line of code when viewed online:
    [expand title=’‘ tag=”div” trigclass=”noarrow”] These are my go-to sites for the best prices on the web [table id=4 /][/expand]

    (the second drop down banner images on the page – Travel Gear)
    If I reverse this and have double first and then single quotes around the image url file path, it shows the image and not the first line of code (which is what I am looking for)
    [expand title=”” tag=”div” trigclass=”noarrow”] The stuff that gets you on the move. Backpacks, Daybags, Hand luggage, packing cubes & more. These are the basic essentials which physically get you on the road for whatever trip you have planned! [table id=3 /][/expand]

    ..But neither of these options are collapsing the text.

    • This reply was modified 7 years, 1 month ago by vickigarside. Reason: image showed with full url
    Plugin Author twinpictures

    (@twinpictures)

    The page is rendering the shortcode as so:

    <div class="collapseomatic noarrow" id="id1477" tabindex="" title="<img src=" https:="" maketimetoseetheworld.com="" wp-content="" plugins="" lazy-load="" images="" 1x1.trans.gif"="" data-lazy-src="https://maketimetoseetheworld.com/wp-content/uploads/2016/10/WEBSITES.jpg">...

    Can you share exactly how you are using your shortcode, simply paste an example of the opening [expand…] tag and don’t forget to wrap it in code tags when you past it here on the forum.

    Fret not, we’ll help you get this issue resolved!

    Thread Starter vickigarside

    (@vickigarside)

    Thanks for your help – I have copied and pasted exactly what I see in the text editor in my previous comment.

    Here they are again:

    [expand title=’Img url‘ tag=”div” trigclass=”noarrow”] These are my go-to sites for the best prices on the web [table id=4 /][/expand]
    the above shows the first line of code on the page

    [expand title=”image URL” tag=”div” trigclass=”noarrow”] The stuff that gets you on the move. Backpacks, Daybags, Hand luggage, packing cubes & more. These are the basic essentials which physically get you on the road for whatever trip you have planned! [table id=3 /][/expand]
    The above does not show the first line of code but is the opposite to what you advised.

    And Neither option is collapsing the text.

    Plugin Author twinpictures

    (@twinpictures)

    • Img url is a place holder, not exactly the code, as requested
    • Both examples are not using single quotes (') and double quotes ("), but rather smart ‘curly’ quotes (’, ‘, ”, ”)

    What is meant by:

    The above does not show the first line of code but is the opposite to what you advised.

    Thread Starter vickigarside

    (@vickigarside)

    Thank you for continuing to respond.

    When I included the full code the image appeared and my comment was flagged for moderation according to this forum. I did not want to encounter that problem again and did not think it would make a different to your helping me with fixing the issue. The actual filepath for the image can easily be seen on the source page.

    As for ‘what is meant’ – I don’t know how to explain it anymore. The code that was above that comment does NOT show the first line of code (if you look at the live page you can see the different presentations) – but the single and double quotes are the reverse of what you initially advised in a previous answer. I am trying to learn and I was confused that what you said I needed to do to fix it, actually only worked in the opposite way.

    As for the difference between single/double and curly quotes – I have only ever used the quotes as indicated on my keyboard – it would appear that doesn’t translate to what you want it to do – but for someone with no coding knowledge and no other options on the keyboard I’m not sure what you expect me to do.

    It might be best for me to just uninstall the plugin.

    Thank you

    Plugin Author twinpictures

    (@twinpictures)

    Let’s reset.

    There is an issue that is being cause by something going on in your theme. Nothing that you are doing. If you would like us to assist you further, it might be better to connect directly. Normally such issues are resolved easily, but in this case, a bit more attention might be required. If you wish, contact us at info [at] twinpictures [dot] de with a link to this thread and we will work directly with you to get this resolved in short order.

    One last try? What do you say?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin Stopped Working’ is closed to new replies.