Advanced Template Settings

Home Forums Calendar Products Events Calendar PRO Advanced Template Settings

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #55724
    snorton
    Participant

    In my advanced template settings, I have some javascript added to remove the sidebar that displays. Every time I update settings on this page, the quotation marks or single quote marks get translated to the encoded html entity. & #039; for example… so I have to go back each time to switch it if I make a change to those template settings. Any idea why? I do not experience this when using the editor on any other page (I’m always in the HTML aka “Text” mode of the editor and never use Visual).

    Here’s my script:

    jQuery(document).ready(function(){
    jQuery(‘body’).removeClass(‘;right_sidebar’).addClass(‘full_width’);
    jQuery(“#sidebar”).remove();
    });

    #56013
    Leah
    Member

    Hi snorton,

    I apologize for the delayed response. We’re swamped with support requests right now, so we’re a bit behind our usual 24 hour guarantee. Someone will be looking at this post shortly to get you a more substantial response. I appreciate your patience.

    Best,
    Leah

    #56105
    Jonah
    Participant

    Hi snorton,

    Is the advanced template settings page a part of your theme? This is what it sounds like. In that case I have no idea why this wouldn’t be working with our plugin and my suggestion would be to go to the theme author since it’s more something they will be able to help you with. Also, you could insert this javascript programatically rather than through the advanced template settings which would bypass this issue.

    I hope that helps!

    Regards,
    Jonah

    #56141
    snorton
    Participant

    Jonah,

    The advanced template settings I’m referring to are a part of your plugin, lol, and can be found under the display tab from the settings page (the Advanced Template Settings heading on that tab has two html editors for before/after event content html).

    #56247
    Jonah
    Participant

    Hi snorton, ahh ok I understand what you’re referring to now. Well, pure javascript won’t work in either of these boxes – you’d need to wrap your jQuery code in script tags in order for it to work. Have you tried that?

    – Jonah

    #56301
    snorton
    Participant

    Yes, my jQuery is wrapped in a script tag. Executing the script is not the issue though. After saving changes in the Display settings the single quotation marks in the WYSIWYG editor get translated/encoded as html entities.

    For example:
    jQuery(‘body’) turns into this: jQuery('body')

    #56302
    snorton
    Participant

    Ah, sorry, cannot edit the above post. The jQuery example above turns into this:

    jQuery(& #039;body& #039;) <– obviously without the space between the ampersand and the pound symbol.

    #56328
    Jonah
    Participant

    Hi snorton,

    This does appear to be a bug and I’ll log it for a future release. In the meantime you should be able to use double quotes. I tried it and it works for me 🙂

    – Jonah

    #56344
    snorton
    Participant

    suh-weet. Thank you, Jonah. That works for me.

    #56348
    Jonah
    Participant

    Excellent to hear snorton, as I said we’ll get the single quotes fixed in a future release. Thanks for finding the bug!

    – Jonah

    #74838
    Leah
    Member

    Hey snorton- I just wanted to pop in here with a quick update. Although we were not able to get a fix for this into our imminent 3.2 release, it is still on the radar for inclusion in a future build. Thanks for your patience!

    #82338
    Leah
    Member

    Hey there,

    I just wanted to let you know that a fix for this issue is included in our upcoming version 3.3. Keep an eye out on your WordPress Plugins page for an update. Thanks for your patience while we worked on this!

    Cheers,
    Leah

    #982774
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Advanced Template Settings’ is closed to new replies.