Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Barebones Child Theme totally Messes up the Formatting
Avatar
cathyw
Member
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2016 - 9:50 pm

I am using Barebones theme.  We finally got it all working correctly!  But then, my webmaster friend SteveM created a child theme today (code needed for the Add Reply button to work) using the Barebones Child Theme Framework.  However this child theme messed with the formatting, linear lines, fonts sizes large in quoted posts, footer colors gone, etc.  See images.

Meanwhile, we reactivated the Barebones theme until we get some ideas how to work with the child theme. 

Any ideas or suggestions?

CathyW

SP-Child-Theme-Issue.JPGImage Enlarger                

 

Lost the footer color:

SP-Child-Theme-Issue3.JPGImage Enlarger 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 13, 2016 - 11:11 pm

Not sure I am following... code needed for add reply??? what does that mean?

a child theme by itself wont affect anything from the parent...  if you alter styles or templates, it can of course...  did you follow the directions here:  https://simple-press.com/docum.....ild-theme/

so is this brand new, fresh child theme or have you begun the customizations?  are we talking desktop or mobile or tablet?

a child theme, with no actual changes, will look identical to the parent..  if its not, perhaps the child theme is not set up correctly...  if you wanted to paste the contents of your child theme spTheme.txt file, we can make sure its set up right (though if downloaded from here, it is)..

Avatar
cathyw
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2016 - 9:29 am

Mr Papa, thanks.  okay, first if you look at this previous topic link below, you will see the solution to my Add Reply button not working was to change some code.  Now, because of that solution, we need to have a child theme for Barebones. 

https://simple-press.com/suppo.....k/#p159407

I will communicate with SteveM and find out if he followed your instructions.  I know he used the Barebones Child Theme Framework to create the child theme. It is for desktop.  I know he has added that code change so that the Add Reply button will work.  That was the only customization so far in the child theme.

I wish we could include 2 email addresses in simple press!  Both SteveM and I could be talking with you 🙂  I know how to do a few things but not enough!

CathyW

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2016 - 11:19 am

Understandable why you've set up a child theme.. I think the first thing to do is to make sure the child theme framework itself doesn't cause issues, so try loading a fresh copy of that without any changes.

If that's fine, then it's most likely happened when adding the code to the functions file. I think all child theme framework functions files come with the tooltip code already in place, ready to be changed if needed.

Avatar
cathyw
Member
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2016 - 12:35 pm

Here are a couple of files SteveM sent me during his lunch break. (He did use the instructions for building the child theme).   If these files look okay,  then later tonight he will try loading a fresh copy of the child theme framework.  

thank you!

CathyW

 

 sp_functions_php.pngImage Enlarger

 

spThemetxt.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 14, 2016 - 10:07 pm

so what is the directory name these are in?  mySiteDefChi?  or still barebones-child?  hopefully, the former...

Avatar
cathyw
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2016 - 8:28 am

Mr Papa, I checked with SteveM and his reply,

"the files are in mySiteDefChi which is barebone-child renamed per their instructions.

mySiteDefChi is the folder that the child theme is in....it is also the name of the child theme....as per their instructions"

CathyW

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2016 - 10:08 am

Have you tried clearing all caches? Always a good idea after major changes. Try the forum admin > toolbox > Housekeeping > Run the task to clear the CSS cache. 

If not that simple then I think we really are going to need a link to the page so we can take a look at the underlying CSS being applied.

andy-signature.png
YELLOW
SWORDFISH
Avatar
cathyw
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2016 - 1:10 pm

ah ha!  Thank you Yellow Swordfish.  Clearing out the cache fixed the issue.  The barebones child theme is now working correctly!!

I have a couple of questions since we are changing the font size using Custom CSS from the dropdown menu, with this code: 

#spMainContainer {
font-size: 114%;
}

  1. Would this need to be included in the child theme so as not to lose in future updates?  Or is it okay to just leave there?
  2. Barebones customizer is now available again after clearing cache!  Should I simply use this instead for font size?  And will this font increase remain with future upgrades? 
  3. What is the order of prioritizing?  Does the Customizer override the Custom CSS?  or vice versa?

CathyW (you guys are aweomome!  I'm really impressed with the support 🙂

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2016 - 1:25 pm

Actually it really doesn't matter which method you use and neither will be overwritten by any updates. The CSS option from the forum admin menu helps people using themes that do not have the customiser so is always there for all themes,

For the record though, the option you are currently using would override the customiser as it is the last styling to be added.

Glad you are now seeing what you are supposed to be seeing!

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620