Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
How to Remove Overlays with Child Theme
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 19, 2015 - 8:28 pm

Mr Papa said
we need to understand why your query argument is missing...

Thanks! You can load my php stylesheet directly here, if that helps. I get no warnings on our site, and the theme seems to be functioning fine. The warnings also do not appear in the SP Error Log, only when calling the file directly.

look in your db, table sfoptions, option name sp_current_theme and see what is listed there...

sp_current_theme

a:5:{s:5:"theme";s:9:"rebootkid";s:5:"style";s:13:"rebootkid.css";s:5:"color";s:11:"light-matte";s:6:"parent";s:6:"reboot";s:5:"icons";s:9:"lightpack";}

sp_mobile_theme

a:9:{s:6:"active";b:1;s:5:"theme";s:9:"rebootkid";s:5:"style";s:13:"rebootkid.css";s:5:"color";s:11:"light-matte";s:6:"parent";s:6:"reboot";s:11:"usetemplate";b:0;s:12:"pagetemplate";s:22:"template-fullwidth.php";s:7:"notitle";b:1;s:5:"icons";s:9:"lightpack";}

sp_tablet_theme

a:9:{s:6:"active";b:1;s:5:"theme";s:9:"rebootkid";s:5:"style";s:13:"rebootkid.css";s:5:"color";s:11:"light-matte";s:6:"parent";s:6:"reboot";s:11:"usetemplate";b:0;s:12:"pagetemplate";s:22:"template-fullwidth.php";s:7:"notitle";b:1;s:5:"icons";s:9:"lightpack";}

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2015 - 9:21 pm

and I assume rebootkid is the proper name of your child theme?

maybe post your child theme spTheme.txt file...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 20, 2015 - 3:09 am

I don't mind weighing in on the topic but I seriously question the point of what you are doing. At least - I question the way you seem to be going about it. Nor - to be totally frank - can we really support it in any sensible way.

You say you get this error when you 'load the file directly'. I am not sure what you actually define by 'directly' but the bottom line is that the code is engineered to be called in a specific way with specific query arguments and you are clearly not supplying those arguments. So you either need to supply them or cut out their expectation from the themes php file.

There are much, much easier ways to generate the CSS from one of our php/overlay based themes but I also agree with Steve when he said earlier that the performance saving will be unnoticeable.

I do not know what you have done but I would suggest you start again! The first question has to be: are you unable to use the combined/compressed CSS option we offer? I do know some servers seem to disallow it although we have not yet found out why. Is yours one of them,? If not - why are you not using that?

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 20, 2015 - 10:53 am

Yellow Swordfish said
I do not know what you have done but I would suggest you start again!

I have not done anything, yet.

I originally started this topic, simply to inquire how I might go about generating a CSS Only version of Reboot to remove the PHP overlay color calls.

Steve suggested I load the reboot.php file in my web browser to generate the CSS stylesheet, that I could then use in the theme:

...you could certainly just copy the generated css file loaded on your page (ie load the css php file directly) and stick it in a css file… 

So, let's start over indeed...

My child theme appears to be functioning fine with the provided parent's combine/compressed CSS and my edited overlay. I do not get the errors above in the SP Toolbox or my server logs. I only noticed them when I loaded the php generated stylesheet in my browser as suggested here. Are those errors appearing in the browser when loading reboot.php in a browser then to be expected? If so, great!

 

Then back to my point, which is to remove the PHP overlay calls I don't need. I only asked if that could be done via the child framework. Replies so far lend me to believe no, I would need to create a custom version of Reboot. I know there is a CSS Only version of the Default theme, so I just wanted to inquire about doing the same for Reboot.

I do understand the results may be negligible, but there must have been a need or reason to do it for the Default theme in the first place.

Hopefully this clears things up. Thank you!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 20, 2015 - 11:15 am

That does  make more sense.  So yes - you should expect errors if you try and just run the reboot.php file in the browser.

Yes - you would need to hive off the CSS and make it into a custom theme completely. I can talk you through a method for doing that if you really need to but then there are updates....

If the combined/compressed cache is working for you then this is actually even better than anything else. It means, apart from the initial load and any subsequent resets due to changes, you are loading pure CSS nicely compressed with all the spaces etc., removed. You can't really get better than that! And it means you can easily change it and absorb updates from us to the parent.

If you do not already use it then using the Script cache is also to be recommended as long as it causes no issues.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 20, 2015 - 12:26 pm

Yellow Swordfish said
...yes - you should expect errors if you try and just run the reboot.php file in the browser.

Phew! cool

If the combined/compressed cache is working for you then this is actually even better than anything else.

Great. Out of curiosity though, wouldn't the CSS Only custom theme also serve up the compressed/cached stylesheet, or is that a function of the PHP version?

Thank you again for all the clarification about whether my notion of a CSS Only theme being lighter/faster is actually on point.

I do want to avoid all the themewerk involved, and I certainly like how my child theme will require minimal if any edits over time. Just trying to minimize any "extra" PHP wherever I can. (SP is not the only plugin/theme I'm tweaking for optimization.)

If you do not already use it then using the Script cache is also to be recommended as long as it causes no issues.

Yup, got that enabled. Thanks for suggesting I check.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 20, 2015 - 1:20 pm

The CSS only file COULD do this but wouldn't add any real benefit. The great thing about using the cache is that it includes ALL the CSS SP provides. So plugin CSS is all included in this compressed cached format. And on case you didn't know - it generates a separate CSS file for the mobile.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 20, 2015 - 1:45 pm

Thanks again for the clarification, think I'll be putting this custom css only theme idea to rest for now. I presumed it too would take advantage of the caching.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2015 - 10:48 pm

sounds good...  sorry I missed the tag up in needing to set the query arg in the url...  you could still do what I said, just have to add the needed query args...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626