Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

change the width of the template socialize only one url

9 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

hello, how I can change the width of the template socialize only one url.

Currently the width of the template for all pages is defined in:

"... / templates / socialize / local / css / bootstrap.css" line 247

with the value ".container {width: 1170px;}"

what I want is for one specific url value is applied ".container {width: 100%;}"

Only for an url Specifically, this because the menu is generated a link shows a page inside a wrapper.

The page displayed within the wrapper requires the value ".container {width: 100%;}" to be displayed in an appropriate manner.

9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Francisco,

You can this code inside socialize->custom code :

<script>
if(window.location.host=='yourdomain.php'){
$('.container').css('width','100% !important');
}
</script>

this is not tested yet, i hope it will work :)

cheers!

9 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

Greetings, the script does not work; images attached configuration and source code of the page where the width has to be 100%.
Any other ideas.

Attachments:
9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

I already modified it, and put the the inside "Before </body>"

9 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

Hello Dimas, have entered the site and showing themselves in continuous width 1170px.

You carried out a test that you will see that the width 1170px be adjusted to a width of 100%.

I await your kind comments.

Thank you.

9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Please let me know (with screenshoot) what do you want looks like?

9 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

attached two images; the second is required.



Attachments:
9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

I cant access your site anymore, so I cant check the code again.. please you makes it live again

thank you

9 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

Please try again.

9 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

please check again, should work fine now, this is the full of code :

<script type="text/javascript">
jQuery( document ).ready(function() {
if(window.location.href=='http://tecno-group.mx/campus-virtual.html'){
jQuery('#t3-mainbody').width('100%');
}
});
</script>

9 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

thanks for any reason if the width is 100% fit this 130% so I defined the width to 70% and the end is at 100%

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