Is anyone here have any idea how I can align the feature image inside my post: http://relationshipcoach.org/sailinghappilyeveraftertest/heres-a-sample-post-with-a-featured-image/ ? Any help would greatly appreciated.
You could do this 2 ways.
Either add the alignleft or alignright class to the PHP code in your child themes functions file which outputs the featured images within single posts
Or add the float: left or float: right declaration to the image class generated by that code in your child themes style.css file which is .post-photo
I tried to set the post-photo to float:left; in either css and function.php but non works. Any idea what code works for my request?
Here’s my code:
But it didn’t move along the content: http://relationshipcoach.org/sailinghappilyeveraftertest/heres-a-sample-post-with-a-featured-image/
I would need to see the PHP code you used to add the image.
The CSS code doesn’t add the image.
Also, what other classes did you try?
Please paste your code in a Github Gist and embed it or link to it from here.
The code you pasted is incomplete.
Here’s the embedded code from Gist:
or the link:
Hope to hear from you soon.
Please remove both code snippets for adding the image from your functions file and replace with this
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.