How to modify mobile nav menu text in theme

You can leverage the use of the gettext filter to change the text. Add this code to your child theme’s functions.php or to a plugin: add_filter(‘gettext’, ‘wpse248225_change_text’, 20, 3 ); function wpse248225_change_text( $translated_text, $untranslated_text, $domain ) { if ( NECTAR_THEME_NAME !== $domain ) { return $translated_text; } // Make the changes to the text switch( … Read more

cookie free subdomain and @font-face

@font-face does not require cookies (unless you choose to cache fonts to avoid server hits), and having a subdomain will make no difference either. You may therefore have an issue with your URLs. Your paths in the first (multiple-line) example are relative to your css file; is your ‘fonts’ directory in the same directory as … Read more

First element/selector of enqueued CSS file breaks

Have you checked this document? https://codex.wordpress.org/Child_Themes I meant this in particular: If your child theme style.css contains actual CSS code (as it normally does), you will need to enqueue it as well. Setting ‘parent-style’ as a dependency will ensure that the child theme stylesheet loads after it. Including the child theme version number ensures that … Read more

Simple way to style posts of a single category differently in the loop and in single

I’m not sure I understand the question, since the answer seems straightforward, assuming standard templates – it’s conceivable that your theme does not provide the kinds of classes you are asking for, but IMO would be odd. It is standard practice for theme writers to include the function body_class() which adds different classes to the … Read more

Custom styles in Tiny MCE with an external CSS file

The path to the CSS file tinymce.min.css was incorrect. The solution was to change: $url .= trailingslashit( plugin_dir_url(get_stylesheet_directory_uri()) ) . ‘/tinymce.min.css’; to: $StyleUrl = get_stylesheet_directory_uri().’/style-sheets/tinymce.min.css’; I also had to change: $StyleUrl = plugin_dir_url(get_stylesheet_directory_uri()).’tinymce.min.css’; to: $StyleUrl = get_stylesheet_directory_uri().’/style-sheets/tinymce.min.css’; Now all I had to do was to remove the styles array so the complete code is: // … Read more