Change default italic from to in admin editor

Are you sure editor use <i> for italics? I’m almost sure it uses <em>. However, if you want to be absolutely sure there are no <i> in your post content, let editor do what it want and then replace <i> with <em> before creating/updating posts, hooking wp_insert_post_data filter, just like: add_filter(‘wp_insert_post_data’,’replace_em’, 20, 1); function replace_em( … Read more

Strange ASCII characters overlapping content

It seems that error is in your theme.min.css. The Font Awesome Icon which should appear in the browser is added via CSS using content. But the CSS does not contain the icon information but these weird looking characters. For Example: .fa-music:before{content:”&iuml;&iuml;&iquest;&frac12;&iuml;&iquest;&frac12;”} I cannot tell why your minified CSS has these characters. This could be: a … Read more

Text Stating the Domain Name Appears on Every Page… How to Get Rid of It [closed]

Take a look at your page source. The offending area is a section of content that’s being output after the closing </html>. Judging from some of the links in that appended area, I’d say there a good chance you’ve been hacked, unless these look like yours: <div style=”text-indent:-9999em”> <a rel=”follow” href=”http://www.bigbrotheralbania6.org”>Big Brother Albania 6</a> <a … Read more

Filter only the text in the_content

Based on your comment clarifying what you want to achieve, it appears you want to display the first 60 characters of your post not including any shortcodes. To do this you can use the strip_shortcodes() function. Rewritten with that, your code will look like this: $content = strip_shortcodes(get_the_content()); $content = apply_filters(‘the_content’, substr($content, 0, 60) ); … Read more

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