Elxis CMS Forum

Extensions => Templates => Topic started by: marbaz on August 23, 2012, 21:41:27

Title: CSS philoxenia Question
Post by: marbaz on August 23, 2012, 21:41:27
Hi all,

Using philoxenia template..

I need to show on 1 page the template without right and left column (so 100% width) because i use a wrapper which needs the full width on that page.

I had the Idea to copy the template and rename it and change the copied template (remove left and right column in the layout.css) and than simply assign the edited template to the page.

But no effort yet, can anyone tell me how and where i can remove the left and right column in philoxenia template ? (CSS od HTML?)

Many thanks!




Title: Re: CSS philoxenia Question
Post by: webgift on August 24, 2012, 11:15:49
You can do that by editing the xenia.class.php file under templates/philoxenia/includes/ directory. In case that you are interested, provide me access (FTP + administrator) to your website via Private Message.
Title: Re: CSS philoxenia Question
Post by: marbaz on August 24, 2012, 13:35:29
Send you a PM..

Thanks
Title: Re: CSS philoxenia Question
Post by: webgift on August 24, 2012, 13:45:05
... solved.
I attach you the piece of code that added.

      
      if ($option == 'com_wrapper') {
         $this->css[] = '#xenia_mainwrapper { width: 970px; }';
         $this->css[] = '#sitecontent { width: 970px; }';
         $this->css[] = '#leftcolumn { display: none; width: 0; }';
         $this->css[] = '#rightcolumn { display: none; width: 0; }';         
      }

There is no need to copy philoxenia template. ;)
Title: Re: CSS philoxenia Question
Post by: marbaz on August 24, 2012, 14:35:01
Great!
Many thanks!
Title: Re: CSS philoxenia Question
Post by: webgift on August 24, 2012, 14:43:26
You are welcome, marbaz.