Hoplop Posted January 30, 2021 Report Share Posted January 30, 2021 Hi I've been all over the genstyle.css and can't find a way to affect the height of the cells in the compact descendancy chart. I've tried using the code below to no effect. I can change the height of a single cell but can't seem to get the right way to make all compact chart cells taller. I'm working in Divi theme without customizations at this stage, and have set up using Kloosterman method. Site is not live yet. Your help is much appreciated. .rounded4, div.pad5 img { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; min-height:35px !important; } Quote Link to comment Share on other sites More sharing options...
Hoplop Posted January 30, 2021 Author Report Share Posted January 30, 2021 Solved: after trying all kinds of css. I went to the desced.php file (preserving a copy of the original) and changed the boxheight to "23"and boxvsep to "7". Final code if( $display == "compact" ) { $pedigree['inclphotos'] = 0; $pedigree['usepopups'] = 0; $pedigree['boxHsep'] = 15; $pedigree['boxheight'] = 23; $pedigree['boxnamesize'] = 8; $pedigree['cellpad'] = 0; $pedigree['boxwidth'] -= 50; $pedigree['boxVsep'] = 7; $pedigree['shadowoffset'] = 1; $pedigree['spacer'] = " "; $pedigree['gendalign'] = -2; $spouseoffset = 20; $pedigree['diff'] = $pedigree['boxheight'] + $pedigree['boxVsep'] + $pedigree['linewidth']; $clinkstyle = "3"; $slinkstyle = ""; } The same change must also be made in the same area of the pedigree.php in order to affect the ancestors compact chart. if( $display == "compact" ) { $pedigree['usepopups_real'] = 0; $pedigree['boxHsep'] = 7; $pedigree['boxheight'] = 23; $pedigree['boxheightshift'] = 0; $pedigree['boxnamesize'] = 8; $pedigree['namesizeshift'] = 0; $pedigree['cellpad'] = 0; $pedigree['boxwidth'] -= 50; $pedigree['boxVsep'] = 7; $pedigree['shadowoffset'] = 1; $namepad = " "; } Quote Link to comment Share on other sites More sharing options...
RickM Posted January 31, 2021 Report Share Posted January 31, 2021 Sorry I'm late to the party here.. Could those changes have been made in the Admin Setup >> Configuration >> Chart Settings?? Quote Link to comment Share on other sites More sharing options...
tngrlkrz Posted January 31, 2021 Report Share Posted January 31, 2021 Rick, I believe some of those values for pedigree and descendant charts are either overridden and/or hard coded, in some cases to ensure reasonable values, I think. At least back in TNG12.3 it was. I can't remember within TNG13. I was going to respond to Hoplop, but didn't take the time to look because I saw WP was in the mix. Quote Link to comment Share on other sites More sharing options...
klooster Posted January 31, 2021 Report Share Posted January 31, 2021 You can also do it with css, then you don't have to change descend.php every time when you upgrade TNG My settings are : /* START TNG BOX COMPACT */ .pedbox.rounded4 { min-height:20px !important; margin-top: 0px !important; margin-bottom: 0px !important; } .rounded4 .pboxname { font-weight: bold !important; font-size: 9px !important; } /* END TNG BOX COMPACT */ Quote Link to comment Share on other sites More sharing options...
Hoplop Posted January 31, 2021 Author Report Share Posted January 31, 2021 Thank you Mr. Kloosterman--I did try that approach as I saw your earlier post but it refused to work. I'm sure there is a conflict somewhere in my theme Divi but just could not locate it, so the php change was a simpler one. Your overall method is great and the genealogy part of my site is starting to look as I want it to. I had no problems at all implementing your method. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.