Skip to content
Advertisement

Tag: wordpress-theming

CSS background images in WordPress

Is it possible to get a background image in CSS like you normally do in HTML when working with WordPress. I’ve tried doing this but it doesn’t work. Answer PHP code cannot run in .css file, however you can use inline style, such as: or The above would be useful when working with custom fields for dynamic image paths. If

Check if a User Has a Gravatar [WordPress]

Thanks Rene Korss for helping to resolve the issue almost and be there every time to reply in discussion. I want to check if the user who has posted comment is having an avatar or not? If user has avatar (means having gravatar account) show gravatar avatar else show image which I have defined in else portion. Any help would

WordPress – post thumbnail in loop

So I’d like to add a thumbnail to my posts but I just can’t get it to work. And in my functions.php I’ve added – add_theme_support(‘post-thumbnails’); It gives me the option to post the thumbnail when I make a post, but it doesn’t show up. Answer What theme or parent theme are you using? I usually do something like this

Advertisement