-
AuthorPosts
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 14, 2016 at 2:54 pm #959914Hi share the working site URL where you published the component page
mazhar shah Friendmazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
August 16, 2016 at 7:28 am #960341This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 16, 2016 at 4:08 pm #960514Hi
here is the documentation that helps you to change the default template width .
you need to add a width value in the px not 100% as other style are not defined with respect to 100% , it may create some issue in it .
Here is link
For sobipro i am not aware how they using the style for their content ,
You need to check it with sobipro how you can change their style classes .mazhar shah Friendmazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
August 16, 2016 at 5:18 pm #960547Ok i think i have found it, but i have a problem.
The modification will definitely work BUT the file is a core file and i have these options:
-
I can DUPLICATE (clone) the entire template and use that. This would save me changing the default ja_healthcare template. HOWEVER, I tried that. but i am having problems. The modules are not showing. It seems duplicating JA_Healthcare template (not the styles) is problematic. this is a different issue so i will create a new post for this.
- The file that I need to adjust to give me the 100% width is in ja_healthcare/tpls/blocks/mainbody/no-sidebar.php Within this file I can remove the id="t3-mainbody" class="container t3-mainbody" from the div AND YES THIS WORKS!!!!! It gives me a 100% width for everything in the content area. I can work with this, beacsue I can add the same div classes in sobipro to bring the content back in the centre.
HOWEVER….. this means making changes to the default files. Which means the change applies throughout the site. I dont weant this. I ONLY WANT THIS CHANGE TO APPLY TO THE SOBIPRO COMPONENT.
I should be able to do that by creating a new style and applying that new template style to the sobipro component link.
I can see in the admin styles there is an option to choose "Position & Responsive Configuration" with a dropdown selection which says ‘default’ and ‘default-nosidebar’ and ‘ defaultXX’. I think what i need to do is create a new ‘default-nosidebar2" option. Within this I can call a new block no-sidebar2.php file (THIS IS THE ONE I WILL USE WITH THE ABOVE AMMENDMENT).
How can I do this? In the tpls folder I can see the three files default.php, default-nosidebar.php and defaultXX.php. Is is just a matter of duplicating these files? or is there anyuthing else i need to do?
UPDATE
That worked. I duplicated the following files tpls/default-nosidebar.php, blocks/mainbody-nosidebar.php and mainbody/no-sidebar.php This gave me a new option in the admin dropdown to select a new option for the "Position & Responsive Configuration" . Thank you for your help .
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by mazhar shah 8 years, 3 months ago.
The topic ‘adjusting width of 'CONTENT AREA'’ is closed to new replies.