Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #959914

    Hi share the working site URL where you published the component page

    mazhar shah Friend
    #960341
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #960514

    Hi
    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 Friend
    #960547

    Ok 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:

    1. 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.

    2. 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 .

Viewing 4 posts - 1 through 4 (of 4 total)

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.