
-
AuthorPosts
-
February 11, 2019 at 8:35 pm #1065646
Hello lovely Enfold Team,
i have a strange Problem:
Sometimes the second line of toolbars won´t show when i´m in my textblock editor. There is no second toolline and the “toggle toolbar” is also missing. I can´t narrow it down since i have the problem on both languages and can´t see a pattern why its sometimes showing and why not. : /I did add some code in my functions.php file which i removed days ago because i thought maybe thats the reason, but nothing changed. Sometimes its showing, sometimes not.
Right now its still commented out.//font and fontsize picker @ editor if ( ! function_exists( 'wdm_add_mce_fontoptions' ) ) { function wdm_add_mce_fontoptions( $buttons ) { array_unshift( $buttons, 'fontselect' ); array_unshift( $buttons, 'fontsizeselect' ); return $buttons; } } add_filter( 'mce_buttons_3', 'wdm_add_mce_fontoptions' ); //Custom fonts showing in editor function load_custom_fonts($init) { $stylesheet_url = '/wp-content/themes/enfold-child/fonts/custom-fonts.css'; if(empty($init['content_css'])) { $init['content_css'] = $stylesheet_url; } else { $init['content_css'] = $init['content_css'].','.$stylesheet_url; } $font_formats = isset($init['font_formats']) ? $init['font_formats'] : 'Trebuchet MS=trebuchet ms'; $custom_fonts = ';'.'WorstveldSling=WorstveldSling'; $init['font_formats'] = $font_formats . $custom_fonts; return $init; } add_filter('tiny_mce_before_init', 'load_custom_fonts'); function load_custom_fonts_frontend() { echo '<link type="text/css" rel="stylesheet" href="/wp-content/themes/enfold-child/fonts/custom-fonts.css">'; } add_action('wp_head', 'load_custom_fonts_frontend'); add_action('admin_head', 'load_custom_fonts_frontend');
The only thing left in my functions.php file – regarding to my Problem – is this:
/* Adds Worstveld Sling @ the enfold theme */ add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Worstveld Sling'] = 'Worstveld Sling'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Worstveld Sling'] = 'Worstveld Sling'; return $fonts; }
Maybe you have a clue for me or can point me in the right direction? :)
Best regards,
chris-
This topic was modified 6 years, 2 months ago by
chris.
February 13, 2019 at 10:28 am #1066370Hi Chris,
Can you try to create a staging site first? basically it’s just a duplicate of your site placed on your subdomain, so this can be used for testing purposes instead of risking your live site.
Here is a tutorial on how to do it: https://themeisle.com/blog/wordpress-staging-site/
Maybe the first thing to try is to disable all plugins and check if this fixes the issue.Best regards,
Nikko -
This topic was modified 6 years, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.