How to get the content width from php (s_wrap)

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeHow to get the content width from php (s_wrap)

This topic has been marked as not resolved.

Hi I would like to know if there is a HTTP session or Var request to get the value of the current width the site has defined.

can I access to this value like $session->get(‘swrap.width’); or something like that.

August 3, 2012 at 4:31 pm #12062

Hi,

The width of all elements with the s_wrap class is always the same: 960 pixels.

Generally, you can take the width of website elements with javascript (jQuery):

$(element).width();

Best,
ThemeBurn team

August 6, 2012 at 1:39 pm #12129
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.