Custom row styles in child theme /inc/panels.php not working
-
Hi there,
First, let me say Thank you! for such a wonderful plugin. My husband is sick to death of me squealing over “the coolest plugin EVER!,” but he may have to stomach it one more time…
My issue is this:
Like a good girl, I have created a child theme in which I am making all of my customizations. I have successfully figured out how to create custom row styles, per the documentation here, and it works when I add a style to the panels.php file in the vantage theme folder, but when I add styles to the panels.php file in my child theme folder, they do not show up.
My child theme folder structure is this:/themes/LSDM-Theme/inc/panels.php
And the code I have used is:
function vantage_panels_row_styles($styles) { $styles['white'] = __('White', 'vantage'); $styles['teal-1'] = __('Teal 1', 'vantage'); $styles['teal-2'] = __('Teal 2', 'vantage'); $styles['teal-3'] = __('Teal 3', 'vantage'); return $styles; } add_filter('siteorigin_panels_row_styles', 'vantage_panels_row_styles');
The exact same code works successfully in the vantage panels.php file, so I don’t -think- it’s a code issue. Any guidance / help would be greatly appreciated.
- The topic ‘Custom row styles in child theme /inc/panels.php not working’ is closed to new replies.