rabijit Posted October 15, 2016 Share Posted October 15, 2016 (edited) How can i write <header id="header" class="header-narrow" data-plugin-options='{"stickyEnabled": true, "stickyEnableOnBoxed": true, "stickyEnableOnMobile": true, "stickyStartAt": 57, "stickySetTop": "-57px", "stickyChangeLogo": true}' > instead of <section id="header"> in header.tpl because as soon as i modify to new code it shows error. Thanks in advance. Edited October 15, 2016 by rabijit 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 15, 2016 Share Posted October 15, 2016 you need to wrap it with {literal}, example below: {literal} <header id="header" class="header-narrow" data-plugin-options='{"stickyEnabled": true, "stickyEnableOnBoxed": true, "stickyEnableOnMobile": true, "stickyStartAt": 57, "stickySetTop": "-57px", "stickyChangeLogo": true}' > {/literal} 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted October 16, 2016 Share Posted October 16, 2016 Literal shouldn't be necessary with Smarty3. What error are you getting? 0 Quote Link to comment Share on other sites More sharing options...
rabijit Posted October 16, 2016 Author Share Posted October 16, 2016 Thanks @sentq it works now. @twhiting9275 blank means contents in header.tpl were not appearing 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.