Dynamic Preview
-
Hello everyone,
thank you very much for the great plugin! Unfortunately I still have difficulties with the Dynamic Preview:
In addition to the styles of the individual layouts, I use a main.css, which contains general styles for e.g. font sizes, fonts etc.. I have integrated this main.css as follows:
add_action('acfe/flexible/enqueue/name=content', 'my_acf_flexible_enqueue', 20, 2);
function my_acf_flexible_enqueue($field, $is_preview){
wp_enqueue_style('main-styles', get_stylesheet_directory_uri() . '/assets/css/main.css');
}However, these font sizes are now overwritten by load-styles.php, so that the preview looks very different from the actual frontend. For example, this is what the overwriting from the load-styles.php of my h2 looks like:
#poststuff .stuffbox>h3, #poststuff h2, #poststuff h3.hndle {
font-size: 14px;
padding: 8px 12px;
margin: 0;
line-height: 1.4;
}How can I configure the Dynamic Preview as accurately as possible without WordPress default styles overwriting my styles? Do I have to specifically dequeue WP styles?
Many thanks in advance and best regards
Lukas
- You must be logged in to reply to this topic.