-
AuthorPosts
-
July 19, 2024 at 4:18 pm #1462501
On my page https://bowl360strikecityspringhill.com/parties-events/, I have a pricing table.
1- The menu does not show up on this page for some weird reason.
2- How can I make the pricing table all equal height?Thanks
July 20, 2024 at 8:06 pm #1462567Hey navindesigns,
Thank you for the link to your site, it looks like the burger menu color is black on a black header background, so it is not seen, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field to make it white:.header_color .av-hamburger-inner, .header_color .av-hamburger-inner::before, .header_color .av-hamburger-inner::after { background-color: #fff; }
For the table height, Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_table_script() { ?> <script> (function($){ $(window).load(function(){ $('.page-id-2333 .avia-pricing-table-container').each(function(){ var $columns = $('.pricing-table',this); var maxHeight = Math.max.apply(Math, $columns.map(function(){ return $(this).height(); }).get()); $columns.height(maxHeight); }); }); })(jQuery); </script> <?php } add_action( 'wp_footer', 'custom_table_script', 99 );
and this css in your Quick CSS:
.page-id-2333 .pricing-table li.empty-table-cell { display: block; } .page-id-2333 .avia-pricing-table-container .pricing-table li:nth-child(6) { height: 62px; }
Best regards,
MikeSeptember 6, 2024 at 3:30 am #1466358thanks
if I wanted this to ONLY affect desktop, what adjustments do I have to make?September 6, 2024 at 4:35 am #1466366Hi,
Thank you for the update.
if I wanted this to ONLY affect desktop, what adjustments do I have to make?
You can prepend the selector .avia_desktop to the css rules to limit them to desktop view.
.avia_desktop .page-id-2333 .pricing-table li.empty-table-cell { display: block; } .avia_desktop .page-id-2333 .avia-pricing-table-container .pricing-table li:nth-child(6) { height: 62px; }
Also, adjust the selector in the script a bit:
function custom_table_script() { ?> <script> (function($) { $(window).on('load', function() { $('.avia_desktop .page-id-2333 .avia-pricing-table-container').each(function() { var $columns = $('.pricing-table', this); var maxHeight = Math.max.apply(Math, $columns.map(function() { return $(this).height(); }).get()); $columns.height(maxHeight); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_table_script', 99);
Best regards,
IsmaelSeptember 6, 2024 at 5:07 pm #1466405It does not seem to be working
On mobile, I am still seeing the extra white spacesscreenshot – https://ibb.co/ry4dKHh
The goal is equal height pricing table column height on desktop (which will have some extra spacing) but on mobile , hide the equal height
Thanks
September 6, 2024 at 10:33 pm #1466423Hi,
Try wrapping the css in a media query for only desktops, like this:@media only screen and (min-width: 768px) { /* your css here */ }
It looks like the page that you linked to has a page ID of 2606, which is different than above.
If you need further help perhaps a admin login would help us.Best regards,
MikeSeptember 10, 2024 at 3:37 am #1466580Hi Mike,
Please see in private contents for wordpress login
The page is https://bowl360.nyc/fundraiser/Thanks in advance
September 11, 2024 at 4:41 pm #1466726 -
AuthorPosts
- You must be logged in to reply to this topic.