Home › Forums › Calendar Products › Events Calendar PRO › Advanced Template Settings
- This topic has 12 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 17, 2013 at 10:39 am #55724
snorton
ParticipantIn 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();
});July 18, 2013 at 6:02 pm #56013Leah
MemberHi 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,
LeahJuly 19, 2013 at 9:17 am #56105Jonah
ParticipantHi 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,
JonahJuly 19, 2013 at 1:08 pm #56141snorton
ParticipantJonah,
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).
July 21, 2013 at 9:15 am #56247Jonah
ParticipantHi 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
July 22, 2013 at 6:29 am #56301snorton
ParticipantYes, 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')July 22, 2013 at 6:30 am #56302snorton
ParticipantAh, 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.
July 22, 2013 at 9:24 am #56328Jonah
ParticipantHi 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
July 22, 2013 at 10:27 am #56344snorton
Participantsuh-weet. Thank you, Jonah. That works for me.
July 22, 2013 at 10:30 am #56348Jonah
ParticipantExcellent to hear snorton, as I said we’ll get the single quotes fixed in a future release. Thanks for finding the bug!
– Jonah
November 5, 2013 at 1:50 pm #74838Leah
MemberHey 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!
December 17, 2013 at 1:51 pm #82338Leah
MemberHey 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,
LeahJuly 7, 2015 at 6:30 am #982774Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Advanced Template Settings’ is closed to new replies.
