Kervtuza Posted November 26, 2013 Report Posted November 26, 2013 Hey Guys, So I am trying to learn how to design themes for Wordpress, I know CSS very well and have some background with Wordpress. I am working on developing my first basic theme with just 2 files to start, index.php and style.css. The trouble I am having is I can't seem to figure out how to target my CSS to the dynamic content of the page. I can fully design the site so it appears great in Wordpress but let's say if I want to give a style to post or comments where I am not hand coding that with HTML, I can't seem to find the CSS selectors. Does anyone know how a site that will give me all of the Wordpress CSS selectors? Thanks!
jsmith1981 Posted November 26, 2013 Report Posted November 26, 2013 Hello hope you're well? I found this (personally speaking of course) a great resource for starting off on your own http://www.siteground.com/tutorials/wordpress/wordpress_create_theme.htm Then just take things out of a theme you like the look of, get it down to its basic HTML (what I found good was this function <?php remove_filter ('the_content', 'wpautop'); ?> Every time you make any post it annoyingly puts in the p tags in every post (no matter what markup is in the post content, either side of your content it puts in yea the p tags. The above code removes them. Hope this helps?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now