Change the search icon in twenty fourteen

This is more of a simple CSS question than actually related to WordPress. However, you need to change your style.css. As TwentyFourteen does not use images, but pseudo css-classes, you need to change this as well: .search-toggle { background: #fff url(‘http://www.citizen-science.at/wordpress/wp-content/themes/cs/img/search-icon.png’) no-repeat; background-size: 30px; background-position: 10px; } .search-toggle:before { content: “”; } By the way, … Read more

Can wp_get_image_editor convert to icon?

No. At least I’ve never saw it. Although I believe that you can tailor some solution. Since WordPress 3.5 in WP_Image_Editor is added support for Imagick by default (which is a wrapper to the ImageMagick library). You can check class-wp-image-editor-imagick.php to see how it’s integrated and if you have ImageMagick installed on your server, probably … Read more

Icons are missing from Visual Editor

After a few more days of frustrating testing, I managed to track the issue down to the External Links Rewrite option in Siteground’s Site Tools, under SSL options. When HTTP Enforce is enabled with the optional External Links Rewrite option (being able to see these changes virtually immediately in the browser requires a Force Refresh, … Read more

Font Awesome Icons only squares

In typography, a square appears when you ask for a character that is not included in the font. By adding the property !important to font-family:, your naviagator is obliged to use Font Awesome. Look carefully at your two screenshots. Neither of the icons is identical. Some solutions: Modify your css .fa{ font-family: ‘font-awesome’; font: normal … Read more

wp_trim_words strips dashicons

Your problem is that your filter is trimming all titles to 7 “words”. This includes blog posts, pages, menu item labels, revision names, and even product names, if you have products. You need to adjust your filter to be less aggressive and only target the titles that you need to truncate. For example, the following … Read more

How to edit original wordpress HTML source code and add icon?

That HTML is generated in the get_comment_reply_link function: https://github.com/WordPress/WordPress/blob/0418dad234c13a88e06f5e50c83bcebaaf5ab211/wp-includes/comment-template.php#L1654 Which gives us what’s needed. Here are 3 options: The function takes an arguments array, and reply_text is one of the options, so just set this value to what you wanted e.g. ‘reply_text’ => ‘<i class=”material-icons”> Reply </i>’ There’s a filter at the end of the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)