Jetpack social icons in other places on site

If you don’t want to rely on Jetpack for font awesome you need to have the CSS files loaded. Best way (in my opinion) to do this is via the CDN. I use the following: // Add font awesome & bootstrap function awesome_css() { wp_enqueue_style(“fontawesome”, ‘https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css’); wp_enqueue_style(“bootstrap3”, ‘https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css’); } add_action( ‘wp_enqueue_scripts’, ‘awesome_css’ ); This goes … Read more

Add icon/badge next to posttitle of specific category

This will depend on how your theme is structuring the templates for single.php (individual post view) but I’ll show you what to look for and how to apply via CSS. So from a theme I’m working on, this is where the category gets included in the post: <article id=”post-3417″ class=”post-3417 post type-post status-publish format-standard hentry … Read more

custom admin thumbnail for videos, not getting post’s id?

First, you don’t need the apply_filters below. That is called directly from the wp_mime_type_icon() function already. The issue is that your add_filter() call is missing the $accepted_args parameter. The add_filter() function has the following construct: add_filter($tag, $function_to_add, $priority = 10, $accepted_args = 1) So the $accepted_args is 1 by default. Because of this, only the … Read more

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