comecaramelos
Forum Replies Created
-
Greetings!
I have the latest OnePress theme and WordPress versions, but I’m not able to update the plugin [license expired :'(]
Maybe the double hero section issue was solved, but the change in inc/customizer.php:18 file (require to require_once) would help to child themes.
I.E.
I’ve added a custom hero section to display the video popup using fancybox and also added a text field to fill with the video url at Hero customizr section.
In order to do this at my child theme I need to import customizer-controls.php file content, but returns an error when loading parent theme file because it require the inc/customizer.php file again.Thanks 4 your answer!
Forum: Themes and Templates
In reply to: [OnePress] After update I Got 2 Hero sectionsHi!
I added this to my functions.php
if ( ! function_exists('onepress_load_hero_section') ) { function onepress_load_hero_section(){ return true; } }Greetings!
Forum: Themes and Templates
In reply to: [OnePress] Template automatically deletes data attributeHi!
I readed that it was solved, but I think the problem was the $allowedposttags variable.
Try to add this to your functions.php
if ( ! function_exists( 'extend_allowed_html_tags' ) ) { function extend_allowed_html_tags() { global $allowedposttags; $allowedposttags['a']['data-robot'] = true; } } add_action( 'init', 'extend_allowed_html_tags');To allow “data-whatever” or any other attrs.