Welcome, Guest
Username: Password: Remember me

TOPIC: Template width smaller

Template width smaller 3 years 2 months ago #5208

  • ninzabi
  • ninzabi's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
I really like this emagazine template but can we make the width template smaller like 1000px or less?
or how can we make this template viewable on small mobile device ( SamsungS3, Iphone.. ) exactly the same as on desktop (for example the OT Artwork template view exactly the same on both small mobile device and on desktop).
Would you let me know how


Thanks
Have a great day
The administrator has disabled public write access.

Re: Template width smaller 3 years 2 months ago #5209

  • linh_omg
  • linh_omg's Avatar
  • OFFLINE
  • Moderator
  • Posts: 910
  • Thank you received: 568
  • Karma: 25
Hi,
You seem do not want to have a responsive site. If so, you can do this to remove the responsive feature:

Edit template file index.php, add bellow code at the php section before <!doctype html>, it will be look like this:
omg_renderCustomTypoCss();
// Add this code:
$document = JFactory::getDocument(); 
$headData = $document->getHeadData();
$scripts = $headData['scripts'];
$styleSheets = $headData['styleSheets'];
unset($scripts[JURI::root(true).'/media/jui/js/respond.min.js']);
unset($styleSheets[JURI::root(true).'/media/jui/css/bootstrap-responsive.min.css']);
$headData['scripts'] = $scripts;
$headData['styleSheets'] = $styleSheets;
$document->setHeadData($headData);
// End add your code
?><!doctype html>

Save it and try.

Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket www.omegatheme.com/member/
The administrator has disabled public write access.

Re: Template width smaller 3 years 2 months ago #5220

  • ninzabi
  • ninzabi's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
This image is hidden for guests. Please log in or register to see it.



Thank you very much for helping me quickly and it worked on small mobile device ( SamsungS3, Iphone.. ). But now it has little problem on IE that there is an extra top main menu under "GALLERY". How can we remove that? Please check attachment.

Thanks
Have a great day
The administrator has disabled public write access.

Re: Template width smaller 3 years 1 month ago #5544

  • ninzabi
  • ninzabi's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
You seem do not want to have a responsive site. If so, you can do this to remove the responsive feature:

Edit template file index.php, add bellow code at the php section before <!doctype html>, it will be look like this:

omg_renderCustomTypoCss();
// Add this code:
$document = JFactory::getDocument();
$headData = $document->getHeadData();
$scripts = $headData;
$styleSheets = $headData;
unset($scripts[JURI::root(true).'/media/jui/js/respond.min.js']);
unset($styleSheets[JURI::root(true).'/media/jui/css/bootstrap-responsive.min.css']);
$headData = $scripts;
$headData = $styleSheets;
$document->setHeadData($headData);
// End add your code
?><!doctype html>

Can I use the same code to apply for the other responsive site if I want to have smaller template??

Thanks
The administrator has disabled public write access.
Time to create page: 0.161 seconds