cfish Posted June 4, 2015 Share Posted June 4, 2015 I'm enjoying working with IPS4 and developing a new child theme for my site but I have one major annoyance.The Custom CSS works well in controlling the look and feel of the front-end (Board etc.) but annoyingly, it also changes the admin (back-end) design too and this often clashes. So, effects I want to add to the front-end cause the admin to look weird.Is there any way to have a child theme control the front-end and maintain the default theme for the admin? Link to comment Share on other sites More sharing options...
Management Charles Posted June 4, 2015 Management Share Posted June 4, 2015 Click "Signed in as..." in the top bar of the AdminCP and you can choose the theme you want to use for the AdminCP. Link to comment Share on other sites More sharing options...
BB Themes Posted June 4, 2015 Share Posted June 4, 2015 We know we can do it that way, but it would be easier and less frustrating for new admins to just have an option to select "default ACP theme" aswell! Link to comment Share on other sites More sharing options...
Marcher Technologies Posted June 4, 2015 Share Posted June 4, 2015 The presence of the ACP skin selection is in itself not necessary if people would theme properly. .ipsApp_front CSS selector should be used to target the frontend only.My 2 cents. Link to comment Share on other sites More sharing options...
cfish Posted June 5, 2015 Author Share Posted June 5, 2015 Click "Signed in as..." in the top bar of the AdminCP and you can choose the theme you want to use for the AdminCP.Thanks Charles. I didn't realise that was there. Still finding my way round.@Marcher Technologies are you saying that for the sake of specificity, all CSS selectors for front-end presentation should use a .ipsApp_front selector prefix? So CSS should look something like this:/* Text colour for footer */ .ipsApp_front #ipsLayout_footer a, .ipsApp_front #ipsLayout_footer p { color: #f8f8f8; } Link to comment Share on other sites More sharing options...
Marcher Technologies Posted June 5, 2015 Share Posted June 5, 2015 Thanks Charles. I didn't realise that was there. Still finding my way round.@Marcher Technologies are you saying that for the sake of specificity, all CSS selectors for front-end presentation should use a .ipsApp_front selector prefix? So CSS should look something like this:/* Text colour for footer */ .ipsApp_front #ipsLayout_footer a, .ipsApp_front #ipsLayout_footer p { color: #f8f8f8; } If you do not wish to skin the ACP, and wish for it to remain default colors, yes. I could be wrong, but I'm fairly certain the only reason it loads custom.css in the ACP is to allow you to skin both if desired without needing to modify default css files. Link to comment Share on other sites More sharing options...
cfish Posted June 5, 2015 Author Share Posted June 5, 2015 OK, that makes sense (sort of). What I've found is that the structure of the markup is different and even though the same classes and IDs are used, the results are not predictable. Probably would have been better to use different class/ID names on front and back ends, which would still allow both to be styled in one place. But the selector prefix is a good workaround. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.