GavickPro / Portfolio-Free-Joomla-Template

3 stars 4 forks source link

Article size #54

Open Youpigolber opened 7 years ago

Youpigolber commented 7 years ago

Hello;

I noted that when the browser display an article, the main body of this very article has a limited width. in the source code of this article page you would find the code (using the Demo source code):

.subpage, .breadcrumb > ul { max-width: 700px;
}

to see this code: https://demo.gavick.com/joomla3/portfolio/ click on the About Me menu right click beside the text and choose "See Frame Source" on line 56 of this source code you will find this code.

My question: How to change this max-width?

thanks in advance

Youpigolber commented 7 years ago

hmmmm looks like I found it out:

in the template file ../inc/head.php find this lines:

.subpage,
.breadcrumb > ul {
    max-width: '.$this->params->get('contentWidth', '700').'px; 
}

and replace them with:

.subpage,
.breadcrumb > ul {
    max-width: '.$this->params->get('contentWidth', '100').'%;  
}

well instead of the 700 px thingy you can just pick whatever you like (1024 px, or 50%, ...) just dont't go over 100 if you're in percent, that would lead to some paranormal activity. but in px you can even give 70000 that doesn't matter you're subpage will not go over the main site.

Enjoy!