Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Template is no longer responsive for mobiles

10 years 10 months ago
  • Ivan's Avatar
    Topic Author
  • Ivan
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Hello,

When I change span sizes in file "templates/socialize/tpls/blocks/mainbody-js.php”, my template is no longer
responsive on mobile phones, tested on iPhone 4s.
Is there a way to change the side bars and main body width without affecting template for mobile devices and without too much space between sidebar 2 and mainbody?
Joomla 22.5.22
Socialize 1.2.8

Changed lines in mainbody-js.php:
Default:

// Layout configuration
  $layout_config = json_decode ('{
    "two_sidebars": {
      "default" : [ "span7 offset2" , "span2 offset-9"    , "span3"             ],
      "wide"    : [],
      "xtablet" : [ "span12"        , "span6 spanfirst"   , "span6"             ],
      "tablet"  : [ "span12"        , "span6 spanfirst"   , "span6"             ]
    },
    "one_sidebar1": {
      "default" : [ "span9 pull-right"         , "span3"             ],
      "wide"    : [],
      "xtablet" : [ "span12"        , "span6 spanfirst"   , "span6"             ],
      "tablet"  : [ "span12"        , "span12 spanfirst"  ]
    },
    "one_sidebar2": {
      "default" : [ "span9"         , "span3"             ],
      "wide"    : [],
      "xtablet" : [ "span12"        , "span6 spanfirst"   , "span6"             ],
      "tablet"  : [ "span12"        , "span12 spanfirst"  ]
    },
    "no_sidebar": {
      "default" : [ "span12" ]
    }
  }');

Modified:
// Layout configuration
  $layout_config = json_decode ('{
    "two_sidebars": {
      "default" : [ "span7 offset2" , "span2 offset-9"    , "span3"             ],
      "wide"    : [],
      "xtablet" : [ "span12"        , "span6 spanfirst"   , "span6"             ],
      "tablet"  : [ "span12"        , "span6 spanfirst"   , "span6"             ]
    },
    "one_sidebar1": {
      "default" : [ "span10 pull-right"         , "span2 pull-right"             ],
      "wide"    : [],
      "xtablet" : [ "span12"        , "span6 spanfirst"   , "span6"             ],
      "tablet"  : [ "span12"        , "span12 spanfirst"  ]
    },
    "one_sidebar2": {
      "default" : [ "span10"         , "span2"             ],
      "wide"    : [],
      "xtablet" : [ "span12"        , "span6 spanfirst"   , "span6"             ],
      "tablet"  : [ "span12"        , "span12 spanfirst"  ]
    },
    "no_sidebar": {
      "default" : [ "span10" ]
    }
  }');

P.S. Sorry for my bad english

Attachments:
10 years 10 months ago
Licenses:

Hi, Ivan.

I assign template developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 10 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Ivan,
Sorry for the delay.
I am seeing you have already customize our existing socialize template and is not acting as responsive.
Please send us ftp info (for checking necessary things ) by editing your first post of this topic.
Thanks

10 years 10 months ago
  • Ivan's Avatar
    Topic Author
  • Ivan
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

I send You ftp info

10 years 10 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Ivan,
I am now successfully login through ftp and
I have renamed existing socialize template as socialie_ and
upload fresh latest release (1.2.8) and seeing it is responsive.
I would suggest you to replace your styling as I have seen you changed some.
note: if you want to get old one back then just rename existing "socialzie" to "socialize__" and change back "socialize_" to "socialize"
at "root/templates".
Thanks

10 years 10 months ago
  • Ivan's Avatar
    Topic Author
  • Ivan
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Licenses:
JomSocial Expired Socialize Expired

Ose Fileman component is instaled on the site for accesing files If you are unable to access through ftp
The same thing happens after modification the same file (mainbody-js.php)

10 years 10 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Ivan,
Sorry for typing mistake.
I have edited my previous post.
I was wondering to say "now" but unfortunately typed "not".
btw, as I said that

I have renamed existing socialize template as socialie_ and
upload fresh latest release (1.2.8) and seeing it is responsive.
I would suggest you to replace your styling as I have seen you changed some.
note: if you want to get old one back then just rename existing "socialzie" to "socialize__" and change back "socialize_" to "socialize"
at "root/templates".


Thanks

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW