Morten Peter Andersen Posted December 31, 2011 Share Posted December 31, 2011 Hi to everybody and a happy new year I´m new to Prestashop .... and working on a new HTML5 theme. I have a problem with body class I´m trying this snippet <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} {if $hook_right_column}class="right"{/if}> The idea was that this should print at body class = right when the right column was in use. But this is not working ? Link to comment Share on other sites More sharing options...
virtualgadjo Posted January 1, 2012 Share Posted January 1, 2012 hi, this may be because the hook_right_col is introduced after the head part containing the body tag... you could try to do this with javascript adding the class to the body checking the existence of an element of the right col hook have swing Link to comment Share on other sites More sharing options...
Morten Peter Andersen Posted January 2, 2012 Author Share Posted January 2, 2012 @virtualgadjo Hi - that make sens -thanks :-) The jQuery solution is my last option .... some people have javascript turn off! Link to comment Share on other sites More sharing options...
virtualgadjo Posted January 3, 2012 Share Posted January 3, 2012 hi, yes, you're right about javascript being turned off, particularly when it comes to screen readers, but, unfortunately, in prestashop, nearly nothing will work in this case... then, a single skinning option will not really be the problem it won't be an issue ofr seo though as search engine do not "see" anything, they just read the source have swing Link to comment Share on other sites More sharing options...
Morten Peter Andersen Posted January 4, 2012 Author Share Posted January 4, 2012 you got a point :-) Link to comment Share on other sites More sharing options...
aaronsteven Posted January 5, 2012 Share Posted January 5, 2012 This means that the prestashop totally made of javascript! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now