Topic-icon 3 css file's in 1 ?

Active Subscriptions:

None
9 years 3 months ago #50580 by Vero
3 css file's in 1 ? was created by Vero
I am now working on SEO improvements and have to much http requests.
So, I want to ask: is it possible 3 css files:

1. /media/sourcecoast/css/common.css
2. /media/sourcecoast/css/sc_bootstrap.css
3. /media/sourcecoast/themes/sclogin/default.css

merge into one larger css file? If it's possible, have I to make some changes in other file's? I just need normal login without facebook or ather's login's.

Vero

Sorry for bad English...
The topic has been locked.
Support Specialist
9 years 3 months ago #50582 by alzander
Replied by alzander on topic 3 css file's in 1 ?
You can combine those files however you want. Instead of doing it yourself though, I'd recommend a Joomla extension like JCH Optimize which can merge all of your CSS files together and do more performance improvements that you may be interested in.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #50601 by Vero
Replied by Vero on topic 3 css file's in 1 ?
I'm sorry, but I don't want extra extensions on my site, I want to do it myself. Than I will understand how it works. I asked where I have to make changes. I have codes of 3 css files ( common.css, sc_bootstrap.css and sourcecoast.css) placed in my template css and two links modified in helper.php file. All works perfect, but tools.pingdom shows two connection error's. What have I to modify yet?

I want to place in my template css one more file /*themes/sclogin/default.css*/.

Sorry for bad English...
The topic has been locked.
Support Specialist
9 years 3 months ago #50604 by alzander
Replied by alzander on topic 3 css file's in 1 ?
Those files are all added in the setupTheme function in the helper.php file. I don't know what your pingdom error is, so not sure what's going wrong.

Please remember that if you make the modification, you'll need to re-do it every time you upgrade the SCLogin module. That's why we recommend something like JCH which is meant to optimize everything and you don't have to worry about your changes as you update.

Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago - 9 years 3 months ago #50605 by Vero
Replied by Vero on topic 3 css file's in 1 ?
I have made modifications:

from
if (!$this->isJFBConnectInstalled)
            $this->doc->addStyleSheet(JURI::base(true) . '/media/sourcecoast/css/sc_bootstrap.css');

        $this->doc->addStyleSheet(JURI::base(true) . '/media/sourcecoast/css/common.css');

to
if (!$this->isJFBConnectInstalled)
            $this->doc->addStyleSheet(JURI::base(true) . '/templates/my_template/css/template.css');

        $this->doc->addStyleSheet(JURI::base(true) . '/templates/my_template/css/template.css');

and now pingdom shows no error's. But I can't goed modify the latest:
$paths[] = JPATH_ROOT . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
        $paths[] = JPATH_ROOT . '/media/sourcecoast/themes/sclogin/';
        $theme = $this->params->get('theme', 'default.css');
        $file = JPath::find($paths, $theme);

I did so:
$paths[] = JPATH_ROOT . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
        $paths[] = JPATH_ROOT . '/templates/my_template/css/';
        $theme = $this->params->get('theme', 'template.css');
        $file = JPath::find($paths, $theme);

And this is not goed. "default.css error" What did I wrong?

Then I have in the place of the latest code your code back added, I see in pingdom the redirect 301 to home page...

Please, help me,
Vero
Last edit: 9 years 3 months ago by Vero.
The topic has been locked.
Support Specialist
9 years 3 months ago #50633 by alzander
Replied by alzander on topic 3 css file's in 1 ?
In that section, you want to comment out the following line:
$this->doc->addStyleSheet(JURI::base(true) . $file);
That line is trying to insert the theme file that you selected in the SCLogin parameters.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago - 9 years 3 months ago #50635 by Vero
Replied by Vero on topic 3 css file's in 1 ?
Thanks!!!

But one more thing: two small images on register popup "?" (forgot username and password) are not displayed. I am placed those images in /templates/my_template/images/. Where have I modify that?

Vero
Last edit: 9 years 3 months ago by Vero.
The topic has been locked.
Support Specialist
9 years 3 months ago #50644 by alzander
Replied by alzander on topic 3 css file's in 1 ?
Those image paths are defined in the CSS files you moved. You'll need to make any changes to the CSS files to update the relative paths to the new directory you're hosting the CSS in. That's completely dependent on what changes you're making and we can't really help with that.

Thanks,
Alex
The topic has been locked.