Jump to content
Stef's Coding Community
Sign in to follow this  
Kervtuza

Css With Wordpress

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...