I'd like to edit the header's background color to turn it into white. Wonder what file to edit for that.
Appreciate any guidance,thanks in advance
I'd like to edit the header's background color to turn it into white. Wonder what file to edit for that. Appreciate any guidance,thanks in advance |
It is in the file general.css in templates/base or templates/yourtemplatename under div.sys_main_logo |
Thanks ggsink, for some reason it didn't do it. Seems like some other script controls the logo area color. Even when I uploaded my logo to overide the default,my png logo's background turns black. |
gginc provided the correct information. https://www.deanbassett.com |
In templates/base/css/general.css Find on lines 154 - 159 the following code div.sys_main_logo { background-color: #f4f4f4; Change to div.sys_main_logo { background-color: #FFFFFF; this should make the changes you are looking for, if it dont then try loging in to FTP and delete everything except the .htaccess from the cache folder. Next delete everything in the cache_public folder Now delete your web browsers cache also reload your site |
You should never make changes to /base/. You can add an override to /tmpl_uni/css/general.css by adding the following at the end of the file (after the @import bit):
div.sys_main_logo {
Clear the cache after you're done. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
nathan why cant you cange base? I have almost compleatly re done one dolphin site just in the base. The other theme that comes with dolphin just links back to base anyway (not realy sure why they have one theme that just links back to the other in almost every file) |
nathan why cant you cange base I have compleatly redone one dolphin site just in the base. The other theme that comes with dolphin just links back to base anyway /base/ is more likely to be changed during upgrades, which means a lot (if not all) of your work done there will be undone. /tmpl_uni/ is less likely to be changed because it calls everything from /base/.
I don't even touch /tmpl_uni/ when making changes. I create a new template based on UNI and make all my changes there. But again, the problem area is /base/. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Ok I never knew that however it has confused me now because uni has nothing in it just lines in every file linking back to base. So I guess my question is how do you make a template from a template with nothing in but links to another template (im confused) uni is missing all the guts base is the one with the guts in it. If I wanted to make a new template to sell lets say, would I have to copy everything from bases files into uni's files for it to do what it is suposed to and not just link to some other thing |
Ok I never knew that however it has confused me now because uni has nothing in it just lines in every file linking back to base. So I guess my question is how do you make a template from a template with nothing in but links to another template (im confused) uni is missing all the guts base is the one with the guts in it. If I wanted to make a new template to sell lets say, would I have to copy everything from bases files into uni's files for it to do what it is suposed to and not just link to some other thing You're right, UNI only calls from /base/, but you can add to it. For example, you can expand BxTemplMenu.php with code from BxBaseMenu.php. You can also add CSS after the @import bit.
Alternatively, you can also copy UNI to create a new template, and then copy the contents of /base/ into it (except the contents of /scripts/, those are /base/-specific). The point is not to edit /base/, because if changes are going to be made to the template, they will be made there. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
cool thanks for pointing that out it is handy to know. Now did this guy or gal get thier header sorted |
You're right, UNI only calls from /base/, but you can add to it. For example, you can expand BxTemplMenu.php with code from BxBaseMenu.php. You can also add CSS after the @import bit. Alternatively, you can also copy UNI to create a new template, and then copy the contents of /base/ into it (except the contents of /scripts/, those are /base/-specific). The point is not to edit /base/, because if changes are going to be made to the template, they will be made there. I quite got it heheh. |
I quite got it heheh. You would need to use UNI as the base for the template. You need to copy /tmpl_uni/ and use a name for the directory (e.g., /tmpl_foo/ or just /foo/), and then change the template name in /scripts/BxTemplName.php. You can copy the contents of /base/ (except for /scripts/) into this new template, and then make all changes there.
If you're making a new template based on the changes you made in /base/, there shouldn't be a problem, as those will be carried over to the new template, as long as you really made all changes there. You don't have to, but you should then replace /base/ with a vanilla copy, because my damaged mind says so.
You should never make changes to files without keep track of them. I make changes in a repository and write all changes down in a file called changes.txt. It can be a pain, but when it comes time to upgrade, it'll come in handy.
But this is all off-topic. If you want to continue this, message me. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
sorry, what is a Vanilla copy? ... got it! After creating a new template, replace the BASE with a copy of the Original BASE (that is vanilla, right?) |